Embedding fonts in PDF

PDF stands for Portable Document Format [WIKI]. Not in all cases this format is that portable. Sometimes this is due to some special fonts that are not so widespread and are not included or embedded in the PDF file. To make the document portable in that sense, we may want to embed all the fonts.

I am assuming that you are working on a UNIX-like system. You will need Ghostscript [WWW] and Poppler [WWW].

Just follow the following simple steps:

  1. Convert your PDF to a PS [WWW]
    pdftops file.pdf
  2. Make all the fonts embedded in the PS file and convert to PDF
    ps2pdf -dSAFER -dNOPLATFONTS -sPAPERSIZE=a4 -dEmbedAllFonts=true -dPDFSETTINGS=/prepress file.ps file.pdf

Credits go to [WWW]. I copied this into my blog just to have a trace in case I will need it one day.


Vladd... call me Vladd
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *