Closed mat100payette closed 3 years ago
Hey there. Thanks for trying out pdfminify.
I believe pdfminify is right here. It refers to the PNG Predictor byte which indicates how a PNG row relates to the previous row. It's defined in the PNG standard RFC2083, https://datatracker.ietf.org/doc/html/rfc2083 -- Sect. 6.1 shows which types of predictors there are. There are five in total (values 0 to 4), but the PNG you seem to have embedded in your PDF has 255 there.
Either this is a malformed PNG inside your PDF or that is some PNG extension that is newer than the standard which I am unaware of. In either case it is not easy for me to tell what is supposed to happen without having seen the PDF file. If you could send it over, I can try to see what is going ion.
Closing this for inactivity. Please feel free to reopen.
Running the thing with no optional parameters, I get
ValueError: 255 is not a valid PNGPredictor
.Here's the stacktrace:
Any idea what's up with that ?