View Source

h2. Description
PDF permits the use of encryption as a means of restricting access or (re-)use of content. This may range from documents that can only be opened after providing a password, to disabling specific functionality (e.g. printing, copying content).

h2. Risks
* Content may become inaccessible if passwords are not known (even though "cracking" is often technically possible, institutions may not be legally permitted to do this)
* Printing / copy restrictions may complicated any future preservation actions

h2. Assessment

The _Preflight_ component of [Apache+PDFBox] (an open source _PDF/A_ validator) is able to detect encryption in a PDF (_any_ PDF, doesn't have to be _PDF/A_!).

h3. PDF requires password for opening

In _Preflight_ 1.8.0 an open password results in error code 1.0 (syntax error) with the following accompanying description:

bq. Syntax error, Error (CryptographyException) while creating security handler for decryption: Error: The supplied password does not match either the owner or user password in the document

In _Preflight_ 2.0.0 only a 'syntax' error message is reported without any indication of anything encryption-related. Reported this as a [bug|https://issues.apache.org/jira/browse/PDFBOX-1659]

|*Error code*|*Affected if expression returns _True_*|



|*Tool*|*Affected if expression returns _True_*|
|[Apache+PDFBox]| {{"/preflight/errors/error/code = '1.0' and /preflight/errors/error/details = 'Syntax error, Error (CryptographyException) while creating security handler for decryption: Error: The supplied password does not match either the owner or user password in the document'"}}|

h2. Recommendations
Recommendations on what action(s) to pursue in case file is affected by this problem. Optional.

h2. Example files
Links to example files, preferrably from [OPF Format Corpus|http://www.opf-labs.org/format-corpus/], e.g. like this:
* [http://www.opf-labs.org/format-corpus/jp2k-test/resolution/balloon_aware.jp2] - Sample file Aware 3.19 (Capture Resolution)

h2. References
References to literature, etc.