[patch] Add user access permissions feature to encrypt method

Bug #321447 reported by KLEIN Stéphane
2
Affects Status Importance Assigned to Milestone
pyPdf
New
Undecided
Unassigned

Bug Description

Hi,

I've write a patch to add user access permissions feature to encrypt method.

Now, encrypt method PdfFileWriter class has "user_access_permissions" parameter.

Example to use :

>>> from pyPdf import PdfFileWriter, PdfFileReader, UserAccessPermissions
>>> output = PdfFileWriter()
>>> output.encrypt(
... user_pwd = "",
... owner_pwd = "password2",
... user_access_permissions = UserAccessPermissions.print_document | UserAccessPermissions.content_copying_for_accessibility
... )

Tags: enhancement
Revision history for this message
KLEIN Stéphane (stephane-harobed) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.