[Poppler-bugs] [Bug 16999] New: pdfimages extracts bitmaps with color inversed, reloaded!
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Tue Aug 5 12:17:06 PDT 2008
http://bugs.freedesktop.org/show_bug.cgi?id=16999
Summary: pdfimages extracts bitmaps with color inversed,
reloaded!
Product: poppler
Version: unspecified
Platform: Other
URL: http://www.cs.umd.edu/~gaburici/a8bug/page1orig+crop.pdf
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: general
AssignedTo: poppler-bugs at lists.freedesktop.org
ReportedBy: gaburici at cs.umd.edu
I see this has been "fixed" in bug 12121, but the fix doesn't work for me for
the pdf linked the URL. More precisely, pdfimages from xpdf 3.02 works
correctly but the one from poppler 0.8.5 does not. The troublesome spot is in
ImageOutputDev, the 300 version is from poppler:
diff -up poppler-0.8.5/poppler-0.8.5/utils/ImageOutputDev.cc.300
poppler-0.8.5/poppler-0.8.5/utils/ImageOutputDev.cc.302
--- poppler-0.8.5/poppler-0.8.5/utils/ImageOutputDev.cc.300 2008-03-26
21:38:52.000000000 +0200
+++ poppler-0.8.5/poppler-0.8.5/utils/ImageOutputDev.cc.302 2007-02-28
00:05:52.000000000 +0200
@@ -152,5 +150,5 @@ void ImageOutputDev::drawImage(GfxState
// copy the stream
size = height * ((width + 7) / 8);
for (i = 0; i < size; ++i) {
- fputc(str->getChar(), f);
+ fputc(str->getChar() ^ 0xff, f);
}
BTW, there's also a difference in how jpegs are handled in ImageOutputDev
between xpdf 3.02 and poppler 0.8.5, but I don't know whether it can cause any
problems.
--
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