James Healy
James Healy
Could you make a minimal reproduction? I'm not sure how else I can debug it from here. Also, it it only happening on a particular PDF file or all PDFs?
This should be fairly straight forward. Can you email me a sample PDF or two so I can check what's involved?
> Would these patches and suggestions be welcome? absolutely!
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 `png_depredict` isn't...
Ouch, this has reminded me that there's only a single unit spec for the Flate filter with PNG shaped data 😬 https://github.com/yob/pdf-reader/blob/946559b06a381ba2651fd037afc95a24309e94e4/spec/reader/filter/flate_spec.rb#L54-L71
@tomtaylor can you provide a sample PDF (by email is fine) that demonstrates what you mean by "invisible" images?
Cheers, I'll leave this ticket open so I don't forget about it
Cheers, I'll leave this ticket open so I don't forget about it
Cheers, I'll leave this ticket open so I don't forget about it
#411 (shipped in 2.8.0) made the following possible: ```ruby PDF::Reader.open("somefile.pdf") do |pdf| puts reader.page(1).text(rect: PDF::Reader::Rectangle.new(0, 0, 100, 100)) end ``` Does that meet a similar need?