[cairo] bug in Firefox print to PDF

Adrian Johnson ajohnson at redneon.com
Wed Jun 24 04:09:37 PDT 2015


On 24/06/15 06:24, Richard wrote:
> I found a bug in the Firefox print to PDF feature under Ubuntu, which
> appears to be implemented with Cairo. I first reported it on Firefox's
> bugzilla, although I don't really know if the issue is with Firefox,
> Ubuntu, or Cairo.
> 
> What I think is happening is that if Firefox uses a Type-1 font, then
> the FontBBox line in the PDF file is invalid. The invalid line will
> consist of of 4 binary numbers, when it should consist of 4 signed integers.
> 
> This error causes Adobe Reader (under Windows 7) to display an error
> dialog box, although the PDF is displayed correctly.
> 
> Has this been fixed in a newer version of Cairo? (Firefox seems to use
> version 1.9.5.) (I did search bugs.freedesktop.org
> <http://bugs.freedesktop.org>, but I didn't find anything that I thought
> was relevant.)

It probably has. There have been a lot of fixes since 1.9.5. The Type 1
BBox code has been rewritten since then.

You could use gedit to confirm if the bug has been fixed. Set the gedit
printing font to that particular font and try printing some text.

> 
> I put more details and example files at:
>   https://bugzilla.mozilla.org/show_bug.cgi?id=1156083
> 
> Thank you,
> 
> Richard
> 
> 



More information about the cairo mailing list