This is a quick note for anyone struggling to generate PDF's which have their fonts included.
I had to supply plots to a publishing house, and when I opened one of the plots in my browser instead of in Adobe Reader, I saw the fonts changed. It turned out the font I used to generate text in R and GGPlot was not included in the PDF. As this happened only one day before the deadline, naturally, I freaked out a little – no need to, though, because on a Mac it is actually easy to embed fonts afterwards and you don't even need additional software.
Below, you'll find the steps needed.
- Open the PDF in Preview (the default app) on a Mac.
- Click on File, and then on Export.
- Choose the Quartz-filter 'Generate generic PDFX-3 document'.
- Save the file.
That's it! The fonts are now embedded. It is always wise to test it, so open the PDF in your browser, or on another computer, your phone et cetera.
I used some (outdated) information available at http://hints.macworld.com/article.php?story=20060203175741232