Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why not open the user access permissions to PdfFileWriter.encrypt() ? #161

Closed
toumura7 opened this issue Dec 11, 2014 · 0 comments · Fixed by #803
Closed

Why not open the user access permissions to PdfFileWriter.encrypt() ? #161

toumura7 opened this issue Dec 11, 2014 · 0 comments · Fixed by #803
Labels
is-feature A feature request workflow-encryption From a users perspective, encryption is the affected feature/workflow

Comments

@toumura7
Copy link

I found that encrypt() has implemented full support to user access permissions P, but it does not allows the caller to assign any permission. I have to change the value of P manually in pdf.py. BTW, The current encrypt() set P = -1 to enable all operations, but it should be P = -4 because the 1st and the 2nd bits have to be 0 according to PDF reference.

@MartinThoma MartinThoma added workflow-encryption From a users perspective, encryption is the affected feature/workflow Proposal labels Apr 8, 2022
@MartinThoma MartinThoma added is-feature A feature request and removed Proposal labels Apr 23, 2022
MartinThoma added a commit that referenced this issue Apr 23, 2022
MartinThoma added a commit that referenced this issue Apr 23, 2022
VictorCarlquist pushed a commit to VictorCarlquist/PyPDF2 that referenced this issue Apr 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is-feature A feature request workflow-encryption From a users perspective, encryption is the affected feature/workflow
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants