[Poppler-bugs] [Bug 31926] pdftops-0.15.2 -level1sep inverts the image mask polarity

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Jan 25 20:37:48 PST 2011


https://bugs.freedesktop.org/show_bug.cgi?id=31926

--- Comment #32 from William Bader <williambader at hotmail.com> 2011-01-25 20:37:48 PST ---
Created an attachment (id=42502)
 View: https://bugs.freedesktop.org/attachment.cgi?id=42502
 Review: https://bugs.freedesktop.org/review?bug=31926&attachment=42502

patch to fix bug-poppler27482.pdf for levels 2 and 3

>Found a pdf file that is rasterized because of this patch and the non rasterized version seems fine

When I process this file with pdftops for level2 or level3, it looks bad to me
when I view the generated postscript with gv+gs and compare it with the
bug-poppler27482.pdf viewed with gv+gs.

I uncompressed the PDF with a short C program called pdfdecode.  Here is a
section from the end.

136.628387 69.802902 m
164.446289 56.828781 l
148.904312 23.505157 l
121.086411 36.479286 l
h
W
n
q
136.628204 69.803017 m
164.446152 56.828873 l
148.90419 23.505249 l
121.086235 36.479393 l
h

The corresponding section of the level2sep output is

136.6284 69.8029 m
164.4463 56.8288 l
148.9043 23.5052 l
121.0864 36.4793 l
136.6284 69.8029 l
h
W
q
136.6282 69.803 m
164.4462 56.8289 l
148.9042 23.5052 l
121.0862 36.4794 l
136.6282 69.803 l
h

I think that dropping the number of decimal places from 6 to 4 is enough to
break the way that the PDF draws the little rectangles that form the black
shading behind the big letters at the top.  I think that the person who made
the PDF rasterized the shadow.

This patch changes a bunch of ".4g" formats to ".6g" in PSOutput.cc, and the
level2 results look much better.  I changed the formats with positions to 6
decimal places but left the formats with colors at 4 decimal places.

This PDF has a color image mask.  It must be rasterized for level1 output or
else the image will be wrong.

I think that since the level2 image is wrong, both the level1 and level2 images
end up looking similar, and that is why it seems like the level1 image does not
need to be rasterized, but I think that they are both wrong.

I will post gv+gs screen captures.

-- 
Configure bugmail: https://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