[pdftex] PDF File Size

Reinhard Kotucha reinhard.kotucha at web.de
Wed Jun 8 01:06:55 CEST 2011


On 2011-06-07 at 05:07:08 -0400, Victor Ivrii wrote:
 > On Tue, Jun 7, 2011 at 4:21 AM, Reinhard Kotucha <reinhard.kotucha at web.de> wrote:

 > > Smaller files can be obtained when using XeTeX or LuaTeX with Latin
 > > Modern OpenType fonts instead of Computer Modern.  But this requires
 > > changes in texinfo.tex.
 > 
 > How much smaller?

If all the Type 1 fonts in the PDF files at

  http://vntex.sf.net/fonts/samples/ 

are replaced by CFF fonts (CFF is used in OTF), then the size of the
whole directory shrinks from 21 MB to 7 MB.

This example is quite extreme because the font sample files don't
contain much text.

The point is that Type 1 fonts are encrypted and you can't compress
random numbers efficiently.  The CFF format is quite similar to Type 1
but the glyphs are described in a much more compact format and no
encryption is applied.

Please note that OTF can contain Type 1 or TrueType fonts.  Type 1
fonts are stored as CFF in OTF and are quite small.  TrueType fonts
are always larger because they contain 2nd order bezier curves and
thus need more curve segments.

Regards,
  Reinhard

-- 
----------------------------------------------------------------------------
Reinhard Kotucha                                      Phone: +49-511-3373112
Marschnerstr. 25
D-30167 Hannover                              mailto:reinhard.kotucha at web.de
----------------------------------------------------------------------------
Microsoft isn't the answer. Microsoft is the question, and the answer is NO.
----------------------------------------------------------------------------



More information about the pdftex mailing list