We're currently using PDFTron PDFNet SDK to encrypt PDF documents using
the standard 128bit rc4 mechanism. We want to investigate moving to
other algorithms like AES.
AES, should work out of box. You don't need to do anything special if
you are opening AES encrypted files.
To apply AES encryption to new or existing PDF document you can create
a new security handler as follows:
StdSecurityHandler* new_handler = new
StdSecurityHandler new_handler = new
and use it as illustrated in 'EncTest' sample project.
Is it AES supported in Acrobat?
We use PDFTron to encrypt the PDF and we have our own Acrobat Security
Handler that connects to our access control servers to retrieve the
decryption key. Currently this decryption key is just passed back to
acrobat - and the decryption of the PDF document is handled via
Acrobat's built in RC4 algorithm.
If we turn on the AES encryption in PDFTron how will we decrypt the
document? Do we have to add AES to our security handler and hook it
into the Acrobat callback mechanism (so we would be handling the
decryption) or is it fully supported in current and previous versions
of Acrobat? Or does PDFTron provide a client side piece that does this
that we can use?
AES encryption is supported beginning with PDF 1.6 (i.e. Acrobat 7).
Viewing AES encrypted documents in earlier versions of Acrobat will
fail (unless you install additional plug-in extensions that can handle
With PDFNet SDK you can apply AES encryption on any valid PDF
You can also open AES encrypted documents, remove AES encryption,
change security settings, permissions, etc.
If you are customizing AES encryption (i.e. it is not a standard PDF
security handler) the only way you can open these documents in Acrobat
is by implementing a custom security handler. In this case you can
also use PDFNet SDK to implement a custom security plug-in for