A sample on how to create a simple plugin for the End-User Editor
There are two projects in this sample - PluginSample and PluginCOMWrapper.
The PluginCOMWrapper is used to create the pvp file with the PXCE_GetPlugin method available. This method basically creates an IPXV_Plugin interface and gives it to the End-User Editor. The wrapper itself is crutial for the .Net and C++ communication.
The PluginSample is the plugin itself. The most important methods are Setup (where are you getting the IPXV_Inst) and Unload (where you should clear all of the objects used). For more information see this link: IPXV_Plugin
- Install the Editor SDK and if needed the UnmanagedExports by Robert Giesecke nuget packet for the Solution. And also turn on the .Net Framework 3.5 in Control Panel/ Programs And Features/ Turn Windows Features on or off.
- Add a refference to the PDFXEditCore.xXX.dll to both the PluginCOMWrapper and PluginSample project.
- In the Solution Items\PXEPlugin.props file you should give the correct PDFOutputDir to the End-User Editor's directory.
- In the PluginCOMWrapper\PluginCOMWrapper.csproj.user change the EditorPath to the End-User Editor's exe file path.
- Unload and Reload the PluginCOMWrapper project to update the project.
- Build the PluginCOMWrapper project. Note that you should choose the x86 or x64 version not the AnyCPU option.
- If everything is successful, the PDFXChange Editor should launch.
- Press Ctrl+K (Preferences) and check the Plugins tab to see whether your plugin is there.
Note: The pvp file won't be added to the End-User Editor if it is in the Program Files folder - this folder requires advanced privileges thus it would be better to install Editor into some other folder (for example current User folder) for testing.