Closed adrift2000 closed 4 years ago
I've found the problem, there is a typo in lib/security.js, in _setupEncryptionV5 function:
const permissions = getPermissionsR3(options);
It should be:
const permissions = getPermissionsR3(options.permissions);
Can you please create a pull request?
Bug Report
Description of the problem
Access permissions are not applied to PDF if pdfVersion is "1.7ext3".
Code sample
Open the document in Acrobat/Acrobat Reader, enter the user password, then view the "Document Restrictions Summary" list: all the permissions are marked as "Not Allowed".
The issue occurs only if pdfVersion is "1.7ext3".
Your environment