[Poppler-bugs] [Bug 16999] pdfimages extracts bitmaps with color inversed, reloaded!

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Aug 5 13:53:04 PDT 2008


http://bugs.freedesktop.org/show_bug.cgi?id=16999





--- Comment #2 from Vasile Gaburici <gaburici at cs.umd.edu>  2008-08-05 13:53:03 PST ---
(In reply to comment #1)
> BTW, the pdf from bug 12121 has a "/Decode [1 0]" for its image! So, that pdf
> stores an inverted image that the pdf viewer is instructed to invert again. My
> pdf does not. So the fix for 12121 was not done properly, because pdfimages
> should drop "^ 0xff" only if /Decode [1 0] is present for the image in the pdf.
> 

Both the xpdf 3.02 and poppler 0.8.5 solutions are incorrect in general.
Basically pdfimages cannot just pass through the monochrome stream, instead
GfxImageColorMap::getGray (or some optimized variant thereof) needs to be
called.


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Poppler-bugs mailing list