9 How can I get Ghostscript to use embedded fonts in PDF?
9.1 Answer
Embedding fonts retrospectivly which were not embedded in the original PDF does increase the file size, not decrease it.
However, there may still be a chance to reduce the overall file size by reducing the resolution of embedded images… depends on your preferences and needs.
You can try with variations of the following commandline. It will embed all fonts (even the “Base 14” ones), but embed required glyphs only (a “subset” of the original font), and also compress the fonts:
You will have noticed that I did use the -o output.pdf convention instead of -sOutputFile=output.pdf.
I also didn’t include -dBATCH -dNOPAUSE in my command.
The reason is that both methods are equivalent, since -o ... silently also sets -dBATCH -dNOPAUSE:
‘Traditional’ Ghostscript option:
‘Modern’ Ghostscript options
However, the modern shortcut way of writing the command does not work for older Ghostscript versions.
If you look into reducing the file size of PDFs only and have now particularly compelling reason to set -dPDFSETTINGS=/screen, then the chapter “How can I convert a color PDF into grayscale?” may also be something to consider.