[texhax] status of pdfsizeopt

Reinhard Kotucha reinhard.kotucha at web.de
Sun Dec 1 04:39:44 CET 2013

On 2013-11-30 at 20:04:05 -0500, Bob Tennent wrote:

 >  >|I used pdfsizeopt for my job applications a few years ago.
 >  >|It turned out that converting Type 1 to CFF reduced the size
 >  >|significantly without any side-effects.  
 > Is there no way to get pdf[la]tex to embed CFF fonts?

No, pdfTeX is frozen but AFAIK LuaTeX converts Type 1 fonts to CFF.
Recent versions of Ghostscript convert Type 1 fonts to CFF too.

You could try

  ps2pdf myfile.pdf myfile-CFF.pdf

The name "ps2pdf" is misleading.  It implies that it expects a
PostScript file but PDF is supported as well.

The drawback is that Ghostscript modifies the pdfinfo dictionary so
that one cannot find out which program created the PDF file originally.

Since Ghostscript accepts both, PDF and PostScript, it's worth to
examine whether the pdfinfo dictionary can be restored easily.  What I
have in mind is to use pdfinfo(1) in order to retrieve the information
and a script which creates a PostScript file "pdfinfo.ps" containing
the information as pdfmarks.  A wrapper script could create pdfinfo.ps
and run

  ps2pdf myfile.pdf pdfinfo.ps myfile-CFF.pdf

I must admit that I didn't test anything, it's just an idea.


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 texhax mailing list