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

means to determine that a file is encrypted #224

Open
StevanWhite opened this issue Oct 14, 2021 · 0 comments
Open

means to determine that a file is encrypted #224

StevanWhite opened this issue Oct 14, 2021 · 0 comments

Comments

@StevanWhite
Copy link

I have discovered that an attempt to alter metadata in an encrypted PDF can result in an unreadable file.
It would be really nice to have a way to know beforehand that the file is encrypted, even if other encryption features are not implemented. Then I could avoid damaging the file.

I can see that the file in question has encryption: pdfinfo gives

Encrypted: yes (print:yes copy:yes change:no addNotes:yes algorithm:RC4

It looks like the Info object might have a member Encrypt ... but with this file, it's not set.
If it were simply set when the file is encrypted, that would help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant