-
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
Bug when getting images from a pdf #2124
Comments
This seems to be a duplicate of #2110. |
Did you find out how to solve it? |
The handling for invalid lookups has to be reworked in PyPDF itself, so there is nothing you can do you from the outside (see the initial analysis in the other report). You might want to submit a corresponding PR attempting to fix this though. |
I got that, thank you! |
Did you read the linked issue? You will see that I discovered this in version 3.15.2. Looking at the code, it might have been introduced in 3.10.0 with 68e2cf0#diff-185702ddcfbf2e4a9ef7106622bb77505eacae032966bba39c65ffb9cd0f9bc7 |
I got your message, thank you! |
@stefan6419846 the issue is the same. good to have a public code for test. |
Hi, i still have the bug with some PDF with version : 3.17.4 Invalid Lookup Table in {'/Subtype': '/Image', '/Filter': '/FlateDecode', '/BitsPerComponent': 8, '/ColorSpace': IndirectObject(10963, 0, 2463122516880), '/Width': 79, '/Height': 82, '/Type': '/XObject'} |
Please open a new issue with all the required details (and an exact page number) instead of posting on old tickets. Doing a quick test, this is another issue in your case:
Thus it might be a duplicate of #2343, although it does not seem to be the flate handler which fails in your case. |
Replace this: What happened? What were you trying to achieve?
Environment
Which environment were you using when you encountered the problem?
Code + PDF
This is a minimal, complete example that shows the issue:
Share here the PDF file(s) that cause the issue. The smaller they are, the
better. Let us know if we may add them to our tests!
上海农村商业银行10.pdf
Traceback
This is the complete Traceback I see:
The text was updated successfully, but these errors were encountered: