To remove certificate-based encryption from a PDF document, perform
the following steps:
Include project files.
Create an encryption service client.
Get the encrypted PDF document.
Remove encryption.
Save the PDF document as a PDF file.
Include project files
Include necessary files into your development
project. If you are creating a client application using Java, include
the necessary JAR files. If you are using web services, ensure that
you include the proxy files.
The following JAR files must
be added to your project’s class path:
adobe-livecycle-client.jar
adobe-usermanager-client.jar
adobe-encryption-client.jar
adobe-utilities.jar (required if LiveCycle is deployed
on JBoss Application Server)
jbossall-client.jar (required if LiveCycle is deployed
on JBoss Application Server)
Create an encryption service client
To programmatically perform
an Encryption service operation, you must create an Encryption service
client. If you are using the Java Encryption Service API, create
an EncrytionServiceClient object. If you are using
the web service Encryption Service API, create an EncryptionServiceService object.
Get the encrypted PDF document
You must obtain an encrypted
PDF document to remove certificate-based encryption. If you attempt
to remove encryption from a PDF document that is not encrypted,
an exception is thrown. Likewise, if you attempt to remove certificate-based
encryption from a password-encrypted document, an exception is thrown.
Remove encryption
To remove certificate-based encryption from
an encrypted PDF document, you require both an encrypted PDF document
and the private key that corresponds to the key that was used to
encrypt the PDF document. The alias value of the private key is
specified when removing certificate-based encryption from an encrypted
PDF document. For information about the public key, see Encrypting PDF Documents with Certificates.
Note: A
private key is stored in the LiveCycle Trust Store. When a certificate
is placed there, an alias value is specified.
Save the PDF document
After certificate-based encryption is
removed from an encrypted PDF document, you can save the PDF document
as a PDF file. Users can open the PDF document in Adobe Reader or
Acrobat.