-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
ValueError: invalid literal for int() with base 10: b'' #1270
Comments
More files triggering this (sometimes through different paths):
|
Validating the PDF with demo.verapdf.org:
So this is not a PyPDF2 bug, but a robustness issue. An exception is expected (at least in strict mode), but we could give a better one. |
Thanks for sharing this URL. I tested a few PDFs I posted in my updated comment above and have seen some errors even when the PDFs can be read normally with a PDF viewer. E.g.
|
this is fixed by PR #1315. |
@pubpub-zz I guess you mean that this issue (#1270) can be closed? |
I've just noticed that we now call |
Oh wow, even when commenting the log lines out executing the sample takes REALLY long! Maybe I should add this to one of the performance tickets |
I would propose you to create a new ticket to only focus on the performance issue. |
+1? |
I've moved that to #1329 :-) |
See #1269 for further details, this reports another issue I've come accross.
Environment
Which environment were you using when you encountered the problem?
$ python -m platform Linux-5.4.0-122-generic-x86_64-with-glibc2.29 $ python -c "import PyPDF2;print(PyPDF2.__version__)" 2.10.3
Code + PDF
This is a minimal, complete example that shows the issue:
PDF file used above: Introduction to Programming Using Python ( PDFDrive ).pdf
Traceback
This is the complete Traceback I see:
The text was updated successfully, but these errors were encountered: