-
Notifications
You must be signed in to change notification settings - Fork 273
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
MalformedPDFError Invalid filter algorithm 31 #500
Comments
The image xobject looks like this:
I'm fairly sure it's accurate that 31 isn't a valid filter type in the PNG format, but I suspect the Unfortunately I'm fairly swamped at the moment with day job and family life so I want be able to take a closer look for a while. Sorry! |
Ouch, this has reminded me that there's only a single unit spec for the Flate filter with PNG shaped data 😬 pdf-reader/spec/reader/filter/flate_spec.rb Lines 54 to 71 in 946559b
|
For those also having issues with this, we found HexaPDF was able to export the image correctly: |
PDF file:
EA9DDBD4F46B6A41F4CFC7FE3A222FAF8013C3CEAC0918D1E2A5.pdf
There seems to be some issue with
png_depredict
function when running the code:That specific xobject is the QR Code which we're trying to extract and parse, but struggling to get the unfiltered_data necessary to do so. Will continue to try and debug but may need someone else's help
The text was updated successfully, but these errors were encountered: