Powered by OPF
OPF WIKI STATIC ARCHIVE
2,681 pages · 153 spaces · 776 tags · 4,025 history records · 96.2% of the original wiki recovered
Archived copy. This page was recovered from the Internet Archive snapshot of /pages/viewpage.action?pageId=28868895 taken on 2023-02-02. The original wiki at wiki.opf-labs.org is being decommissioned.

Encryption

Created by Johan van der Knijff on Jul 15, 2013 · last edited by Johan van der Knijff · on Jul 15, 2013 (view history) · 22 versions

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).

Risks

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!).

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:

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

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'"

Recommendations

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

Example files

Links to example files, preferrably from OPF Format Corpus, e.g. like this:

References

References to literature, etc.