Skip to content

pdf-xchange/PDFEditorPluginSample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PDFEditorPluginSample

A sample on how to create a simple plugin for the End-User Editor

Sample Structure

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

To start, you will have to do these steps:

  1. 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.
  2. Add a refference to the PDFXEditCore.xXX.dll to both the PluginCOMWrapper and PluginSample project.
  3. In the Solution Items\PXEPlugin.props file you should give the correct PDFOutputDir to the End-User Editor's directory.
  4. In the PluginCOMWrapper\PluginCOMWrapper.csproj.user change the EditorPath to the End-User Editor's exe file path.
  5. Unload and Reload the PluginCOMWrapper project to update the project.
  6. Build the PluginCOMWrapper project. Note that you should choose the x86 or x64 version not the AnyCPU option.
  7. If everything is successful, the PDFXChange Editor should launch.
  8. 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.

About

A sample on how to create a simple plugin for the End-User Editor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages