Re: bug in Firefox print to PDF

Adrian Johnson <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
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
> 
> 

-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.