Replies: 1 comment 20 replies
-
It seems like you are mixing up something: A PDF file can have a user password and an owner password. The user password is required each time you open the file. An owner password is used to restrict the permissions a regular user (without specifying the owner password) should be allowed to do. You are correct that
Alternatively, you might pass any set of permission flag value into To change the permissions, use |
Beta Was this translation helpful? Give feedback.
-
There seem to be some confusion between
User Access Permissions
andDocument [Security] Restrictions
, when handling permissions. (Or at least I am confused, because it looks like you are mixing up the two.)User Access Permissions
is used for setting permissions on encrypted files requiring a password.Document [Security] Restrictions
can be set on any PDF file (without encryption)There is also an ambiguous
DeprecationWarning
that tell you to use another thing, and then doesn't work.Looking at some PDF document you can have the
Document [Security] Restrictions
as shown in Adobe Acrobat, without any Encryption.Here's how my PDF looks.
(Sorry, I cannot share it as it belongs to a company.)
So if I have a non-encrypted PDF with the following restrictions:
(512 and 1024, respectively)
The question is:
Environment
Which environment were you using when you encountered the problem?
Code + PDF
This is a REPL example that shows the issue:
Beta Was this translation helpful? Give feedback.
All reactions