-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PDF encryption: Reserved permission bits might have wrong state #2401
Comments
I think I might have a different version of the specs as I don't have that table. In I do see a note, though:
This means that R13 -R32 are required to be 1. However, I don't see evidence for any other values. |
There are indeed at least two versions of the spec. In Line 53 in 54ae0a6
|
When encrypting PDF files, there is no verification whether the reserved permission bits are passed correctly. This seems to allow for PDF files which do not completely follow the PDF 1.7 specification (table 3.20). (This is some follow-up to #2391.)
Environment
Which environment were you using when you encountered the problem?
Code + PDF
This is a minimal, complete example that shows the issue:
The PDF file is from our own resources directory.
Output
This will print:
Problem
The text was updated successfully, but these errors were encountered: