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

PdfError(Decryption(UnsupportedEncryption)) for format PDF-1.7 but not for PDF-1.6 #98

Closed
guymarshall opened this issue Dec 14, 2024 · 4 comments

Comments

@guymarshall
Copy link

I am trying to open a .pdf file using this crate, but I am getting an error "PdfError(Decryption(UnsupportedEncryption))". Linux Mint tells me the file's format is PDF-1.7. Another pdf file that has the format PDF-1.6 opens fine with this crate and I can print the contents of it. The file is not encrypted with a password so I am unsure why it is giving that error.

@jrmuizel
Copy link
Owner

Can you share the pdf? Can it be read with any of the tools in https://github.com/J-F-Liu/lopdf?

@guymarshall
Copy link
Author

Sorry yes here is the PDF file. I have also tried lopdf and no luck!
AQA-8461-SP-2016.PDF

@jrmuizel
Copy link
Owner

pdf-extract depends on lopdf so this may need to be fixed there before it will work with pdf-extract. I'd suggest filing an upstream bug there.

@guymarshall
Copy link
Author

Ok I will do thank you! :)

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

2 participants