[Poppler-bugs] [Bug 24987] PDF not displaying properly in newer version of evince

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Nov 9 04:37:41 PST 2009


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





--- Comment #1 from Adrian Johnson <ajohnson at redneon.com>  2009-11-09 04:37:40 PST ---
Created an attachment (id=31064)
 --> (http://bugs.freedesktop.org/attachment.cgi?id=31064)
patch

The the PDF is using two glyphs from the Type 3 font to draw the barcode. One
glyph draws a black rectangle, the other a white rectangle. 

The type 3 charproc for each glyph looks something like:

75 0 d0
6 0 69 2000 re
1.0 g
f

and 

75 0 d0
4 0 71 2000 re
0.0 g
f

The problem is the "1.0 g" and "0.0 g". Cairo doesn't support colors in the
user font render callback. Any mark made will be rendered as the font color. So
both the white and black rectangle are rendered as black resulting in one big
black blob.

I'm not sure how we can support gray levels in the Type 3 glyphs. For now I
attach a patch makes the barcode render correctly by disabling filling/stroking
inside Type 3 glyphs when the gray level is > 0.5.


-- 
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