How to Create an Acrobat Plug-In with the .api Extension
Question details
The user is attempting to compile a C plug-in for Adobe Acrobat using Visual Studio, but the output file does not have the required .api extension as specified by the Acrobat SDK tutorial.

- Product
- Adobe Acrobat SDK
- Device & OS
- Windows
- Scenario
- Developing and compiling a custom plug-in for Adobe Acrobat using Visual Studio and the official Acrobat SDK.
- Observed behavior
- The compilation process produces a standard file (like a .dll) instead of the expected .api file extension, preventing the plug-in from being properly recognized by Acrobat.
Ensure you have downloaded the latest Adobe Acrobat SDK and have Visual Studio properly installed with C++ desktop development workloads enabled.
Use an Acrobat SDK Sample Project as a Starting Point
The recommended approach is to modify an existing SDK sample rather than creating a project from scratch, as the required configuration and export settings for an .api file are highly specialized.
On Windows, an Acrobat plug-in is essentially compiled as a standard Dynamic Link Library (DLL) that uses the .api file extension. Because configuring a new project to meet all of Adobe's required export settings is difficult even for experienced developers, leveraging pre-configured samples saves time and prevents compilation errors.
Navigate to the 'PluginSupport/Samples' directory within your extracted Adobe Acrobat SDK folder.
Double-click one of the sample solution (.sln) files to open it in Visual Studio.
Right-click the project in the Solution Explorer, select 'Properties', and review how the linker and export settings are natively configured for Acrobat.
Build the project. The pre-configured settings will automatically compile the code and output a correctly formatted file with the .api extension.

Manually Change Output Extension to .api
If you are strictly attempting to fix an existing project built from scratch, you must manually instruct Visual Studio to output an .api file instead of a .dll.
Looking for an Easier Way to Manage PDFs? Try WPS Office
Developing custom PDF plug-ins from scratch can be incredibly complex and time-consuming. If you are looking for advanced PDF editing, conversion, and document management capabilities without the hassle of custom coding, WPS Office provides a powerful, lightweight, and free alternative with comprehensive built-in PDF tools.
- 1. Download the Installer: Visit the official WPS Office website and download the free version for your operating system.
- 2. Install WPS Office: Run the setup file and follow the quick on-screen instructions to complete the installation.
- 3. Access PDF Tools: Open WPS Office and click on the 'PDF' tab to instantly access a full suite of professional PDF editing features.

Frequently Asked Questions
Why does Visual Studio create a DLL instead of an API file?
An .api file used by Adobe Acrobat is technically just a standard Windows Dynamic Link Library (DLL) file. However, Acrobat requires the .api extension to explicitly recognize and load it as an authorized plug-in.
Can I simply rename my compiled .dll file to .api?
Yes, you can manually rename the file extension in your Windows File Explorer from .dll to .api. However, the file will only function inside Acrobat if your code includes the specialized SDK export settings and configurations.
Where can I find the Acrobat SDK sample projects?
The sample projects are bundled within the official Adobe Acrobat SDK download. Once extracted, you can find them located under the 'PluginSupport/Samples' directory.




