
Adobe Acrobat SDK
Creating an Adobe Reader Plug-In
Developing Plug-ins and Applications
Enabling the plug-in for Adobe Reader 247
Enabling the plug-in for Adobe Reader
After receiving the digital certificate, enable the plug-in for Adobe Reader, by performing the following
tasks:
1. Open the Terminal application.
2. Run the ReaderEnable tool using the command line options shown in the sample invocation below.
Pass the key pair resource file, the digital certificate resource file, and the plug-in as arguments. The
following sample invocation enables plug-in
Plug-in.acroplugin
located at
/Volumes/dev/Plugin/build.
./ReaderEnable -kf ./keypair.rsrc -cf ./digitalcertificate.rsrc
/Volumes/dev/Plugin/build/Plug-in.acroplugin
If successful, you will receive the message: “Plug-in.acroplugin successfully Reader Enabled”. (Tip: to
easily copy paths to the command line, drag files from the Finder window to the Terminal window.) The
plug-in can now be loaded by Adobe Reader.
Note:
Steps 1 and 2 must be repeated each time the plug-in is built. The public and private key pair and
digital certificate files may be used.
Creating resource files on the Windows platform
This section discusses creating a resource file for an Adobe Reader plug-in on the Windows platform. When
prompted for a path by either of the enabling tools, the filename is limited to 8:3 format. The path may be
specified in relative or absolute form. To shorten file names, use the ~ format. For example,
NameTooBig.api can be changed to NameTo~1.api.
Creating the public and private key pairs
Perform the following tasks:
1. Run the Makekey.exe program.
●
Enter a random seed value at the prompt. This can be any string of alphanumeric characters, up to
126 characters in length, with no white space. This may take a few minutes to run.
●
Enter the path to which the key pair will be written.
●
Enter the path to which the public key will be written.
The size of the public key should be 98 bytes. The size of the public and private key pair should be 451
bytes. The size of the returned encrypted key should be 554 bytes.
2. Upload a ZIP file containing the public key using the instructions given in step 4 of
Enabling an Adobe
Reader plug-in
.
Enabling the plug-in for Adobe Reader
After receiving the digital certificate, enable the plug-in for Adobe Reader, by performing the following
tasks:
1. Make a copy of dummy.rc and put it in your project directory.
2. Open your plug-in project in Visual Studio. Make sure you are in Resource View.