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

exception occured when I try to open a crypt pdf. #4

Closed
wustwg opened this issue May 9, 2021 · 2 comments
Closed

exception occured when I try to open a crypt pdf. #4

wustwg opened this issue May 9, 2021 · 2 comments

Comments

@wustwg
Copy link

wustwg commented May 9, 2021

hi, when I user your code to remove pdf password,
exception raised at getNumPages.If I don't encrypt it , it seems that I can't get getNumPages attribute.

File "/home/wg/PycharmProjects/webdriverTest/venv/lib/python3.9/site-packages/PyPDF2/pdf.py", line 1150, in getNumPages
raise utils.PdfReadError("File has not been decrypted")
PyPDF2.utils.PdfReadError: File has not been decrypted

Does it work normal on your computer now?

@doolieSoft
Copy link
Owner

Hello, have you a pdf file to test?
Thanks

Bosek added a commit to Bosek/PdfPasswordRemover that referenced this issue Jan 19, 2023
@doolieSoft
Copy link
Owner

Thanks bosek for your pull request.

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