PyPDF4 icon indicating copy to clipboard operation
PyPDF4 copied to clipboard

advanced encryption

Open erfantkerfan opened this issue 4 years ago • 2 comments

in some files I need to encrypt pdf file with 2 properties:

  1. opening the pdf file does not require a password at all
  2. 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")

erfantkerfan avatar Nov 05 '20 12:11 erfantkerfan

Hi you should have a look at this issue #88

pubpub-zz avatar Nov 05 '20 12:11 pubpub-zz

yeah I checked that out but is it fixed on pip yet?

erfantkerfan avatar Dec 14 '20 14:12 erfantkerfan