[cairo-bugs] [Bug 11612] cairo -1.4.10 generates PDF files much bigger than originals

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Jul 16 17:24:55 PDT 2007


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





------- Comment #4 from ajohnson at redneon.com  2007-07-16 17:24 PST -------
> I printed a dissertation using evince and the output is 4.5 times bigger as the
> original file (this is the worst case I've seen):
> 
> $ ls -lh output.pdf TesisRosa-B5-Uni.pdf 
> -rw-r--r-- 1 ousia ousia 6,3M Jul 16 21:43 output.pdf
> -rw-r--r-- 1 ousia ousia 1,4M Dec  1  2006 TesisRosa-B5-Uni.pdf
> 
> The PDF document shows that the creator and generator is cairo-1.4.10:

Could you provide a link to the original PDF and the output from cairo. 

> And those CairoFonts should have been renamed by cairo itself.
> 
> $ pdffonts output.pdf 
> name                                 type              emb sub uni object ID
> ------------------------------------ ----------------- --- --- --- ---------
> CairoFont-8-0                        CID TrueType      yes no  yes   1105  0
> NimbusRomanNo9L                      Type 1            yes no  yes   1110  0
> NimbusSansL                          Type 1            yes no  yes   1115  0
> NimbusRomanNo9L                      Type 1            yes no  yes   1120  0
> CairoFont-0-0                        CID TrueType      yes no  yes   1126  0
> CairoFont-1-0                        CID TrueType      yes no  yes   1132  0
> NimbusSansL                          Type 1            yes no  yes   1137  0
> CairoFont-4-0                        CID TrueType      yes no  yes   1143  0
> NimbusSansL                          Type 1            yes no  yes   1148  0
> 

Looks like what is happening here is that the embedded TrueType fonts in the
original PDF have had the "name" tables stripped out during subsetting. The
font names exist only in the PDF font dictionaries. When cairo embeds the font
in the new PDF there is no fontname available in the font so the CairoFont-x-y
name is used instead.


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.


More information about the cairo-bugs mailing list