Bug 9981

Summary: cairo embeds the same font multiple times in PDF output
Product: cairo Reporter: Pablo Rodríguez <freedesktop>
Component: pdf backendAssignee: Kristian Høgsberg <krh>
Status: RESOLVED FIXED QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: blocker    
Priority: high CC: ajohnson
Version: 1.3.9   
Hardware: Other   
OS: All   
URL: http://ousia.iespana.es/pdf/tesis.utf8.pdf
Whiteboard:
i915 platform: i915 features:

Description Pablo Rodríguez 2007-02-15 04:50:17 UTC
Printing the following PDF document (http://ousia.iespana.es/pdf/tesis.utf8.pdf) to a PDF file generated by cairo-1.3.14, I get the following results. I don't know whether my test is fair or not, but it might show some inconsistencies.

The original file is 1.3MB and the resulting file is 3.0. It takes too long to print (over 120 secs in with a 1.6Ghz dual core processor with 2048MB RAM).

Fonts are embedded more than once and none of them is subset (when they are embedded only once in the original file and both are subset).

And displaying the printed file with evince with poppler-cairo seems to longer than the original file.

I hope it helps,


Pablo
Comment 1 Carl Worth 2007-02-15 16:47:22 UTC
Please choose one issue per bug report. If you've got more than one thing to report, use multiple bug reports. And please use descriptive subjects for the bug.

I'm reanming this bug report from "my experience with cairo-1.3.14 PDF generation" to "cairo embed the same font multiple times in PDF output".

Feel free to open new bug reports for the other issues you encountered.

And thanks for using cairo and reporting the problems you encountered here. Hopefully they can be addressed soon!

-Carl
Comment 2 Adrian Johnson 2007-02-23 03:54:09 UTC
(In reply to comment #0)
> The original file is 1.3MB and the resulting file is 3.0. It takes too long to
> print (over 120 secs in with a 1.6Ghz dual core processor with 2048MB RAM).
> 
> Fonts are embedded more than once and none of them is subset (when they are
> embedded only once in the original file and both are subset).

The repeated font embedding problem has been fixed in cairo 1.3.15. I expect this will fix most of the issues with the file size and also reduce the processing time.
Comment 3 Carl Worth 2007-03-02 03:55:43 UTC
I'm marking this closed as per Adrian's earlier comment that this is already fixed in 1.3.15, (so this bug can't be holding up 1.4 anymore).

-Carl

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.