Sunday, November 22, 2009

Embedding fonts in a PDF

For papers that require a PDF with all fonts embedded, often the fonts in PDF figures (imported via pdflatex) are not embedded (I have this problem with my figures created from gnuplot that use Helvetica). This trick worked nicely to convert the figure to one with Helvetica embedded (and pdflatex takes care of the rest)

gs -dSAFER -dNOPLATFONTS -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sPAPERSIZE=letter -dCompatibilityLevel=1.4 -dPDFSETTINGS=/printer -dCompatibilityLevel=1.4 -dMaxSubsetPct=100 -dSubsetFonts=true -dEmbedAllFonts=true -sOutputFile=fig/figure1-embeddedfonts.pdf -f fig/figure1.pdf

Source: http://colinm.org/tips/latex

No comments:

Post a Comment

Followers