I'm not sure if this is the correct forum to ask this question so please accept my apologies in advance if this is the wrong place. (I have already posted this in the Programmers section but I've yet to receive an answer.)
I recently created an encrypted PDF file using PDF Studio 11. The software provides three encryption options:
- RC4
- 128 AES
- 256 AES
256-bit AES requires the Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files 8 be installed.
I created three dummy files:
- test1.pdf [encrypted with RC4]
- test2.pdf [encrypted with 128]
- test3.pdf [encrypted with 256]
When I opened them in a PDF viewer I saw that every single file has the PDF version stated as 1.5.
I double checked this at the command line using qpdf and sure enough it was specified: "PDF Version: 1.5"
I looked at the Adobe PDF Reference, Fourth Edition, version 1.5 and it seems that 1.5 supports only RC4 128-bit encryption.
qpdf indicated the following:
- test1.pdf [no mention of encryption, although PDF viewer requires password to open file]
- test2.pdf [AESv2]
- test3.pdf [AESv3]
The first two test files opened in Evince after inputting the correct password but the third (the one encrypted with 256-bit AES) only opened in the Google Chrome PDF viewer; AFAIK Evince can't open 256-bit AES encrypted files.
The output from qpdf, the available encryption options in PDF Studio, the requirement for the JCE to be installed and the fact that the third file couldn't be opened in Evince all lead me to the conclusion that the file is encrypted with 256-bit AES (or 128-bit AES where applicable).
My questions are:
- if the 1.5 standard doesn't support AES then how can the document be encrypted with AES (unless PDF Studio is misreporting the version number)?
- if the editor (PDF Studio) is applying proper 256-bit AES and not complying with the 1.5 standard then why not assign it a higher PDF version? (I can't see any benefits in using a lower version number particularly as older software wouldn't be able to open it anyway).
- can the PDF metadata be effectively encrypted using AES (presuming AES is being properly applied) when using 1.5?
My understanding is that AES is only implemented in PDF versions 1.6 and 1.7. (I am aware there are shortcomings in Adobe's password handling of 256-bit AES in certain versions but that's a separate matter).