forked from py-pdf/pypdf
-
Notifications
You must be signed in to change notification settings - Fork 61
Open
Description
in some files I need to encrypt pdf file with 2 properties:
- opening the pdf file does not require a password at all
- making any changes (and if possible printing) would require the owner_pwd
I tried reading the source code but it seemed that this logic wont work with such code:
output_file = PdfFileWriter()
output_file.encrypt(user_pwd="", owner_pwd="password")
Metadata
Metadata
Assignees
Labels
No labels