To remove password-based encryption from a PDF document,
perform the following steps:
Include project files
Create an encryption service client.
Get the encrypted PDF document.
Remove the password.
Save the PDF document as a PDF file.
Include project files
Include the 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, make sure
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)
jbossall-client.jar (required if LiveCycle is deployed
on JBoss)
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 password-based encryption. If you attempt
to remove encryption from a PDF document that is not encrypted,
an exception is thrown.
Remove the password
To remove password-based encryption from
an encrypted PDF document, you require both an encrypted PDF document
and a master password value that is used to remove encryption from
the PDF document. The password that is used to open a password-encrypted
PDF document cannot be used to remove encryption. A master password
is specified when the PDF document is encrypted with a password.
(See Encrypting PDF Documents with a Password.)
Save the PDF document
After the Encryption service removes
password-based encryption from a PDF document, you can save the
PDF document as a PDF file. Users can open the PDF document in Adobe
Reader or Acrobat without specifying a password.