Difference between revisions of "Embed Fonts in your PDFs"

From IridiaWiki
Jump to navigationJump to search
m (Protected "Embed Fonts in your PDFs" [edit=autoconfirmed:move=autoconfirmed])
(mention pdffix script)
 
Line 4: Line 4:
 
pdffonts my_pdf.pdf
 
pdffonts my_pdf.pdf
   
 
pdfLaTEX should already embed the fonts in your documents, so if you don't have all the fonts embedded the fault is probably of some images. R has the bad habit of not embedding the fonts.
   
 
How to solve this:
PdfLatex should already embed the fonts in your documents, so if you don't have all the fonts embedded the fault is probably of some images. R has the bad habit of not embedding the fonts.
 
   
 
* the dirty solution is to convert the file (either the single images or the whole doc) to ps and then back to pdf with the fonts. Note that this process might mess up the layout, always check the obtained pdf. ([http://kailaspatil.blogspot.com/2011/03/embed-fonts-in-pdf-file-using-pdflatex.html Source])
 
How to solve this:
 
* the dirty solution is to convert the file (either the single images or the whole doc) to ps and then back to pdf with the fonts. Note that this process might mess up the layout, always check the obtained pdf.
 
** from http://kailaspatil.blogspot.com/2011/03/embed-fonts-in-pdf-file-using-pdflatex.html
 
 
pdftops mypaper.pdf
 
pdftops mypaper.pdf
 
ps2pdf14 -dPDFSETTINGS=/prepress mypaper.ps
 
ps2pdf14 -dPDFSETTINGS=/prepress mypaper.ps
  +
  +
* A less dirty solution is to convert from PDF to PDF using ghostscript. This normally does not mess up the layout or lower the quality of the images. See the script pdffix in https://iridia-dev.ulb.ac.be/projects/optsrc/svn/scripts/pdffix
   
 
* the correct solution would be to embed the fonts when producing the images.
 
* the correct solution would be to embed the fonts when producing the images.
 
** examples coming up in the future
 
** examples coming up in the future
 
--[[User:Manubrambi|Manubrambi]] 08:36, 12 October 2011 (UTC)
 

Latest revision as of 00:28, 30 October 2011

Many conferences/journals need you to embed all the used fonts in your pdfs. You can check if your pdfs have embedded fonts in two ways:

  • Open it with your favorite pdf readers (tested with areader and evince), go to File->Properties->Fonts and check that everything is embedded
  • from the command line:
pdffonts my_pdf.pdf

pdfLaTEX should already embed the fonts in your documents, so if you don't have all the fonts embedded the fault is probably of some images. R has the bad habit of not embedding the fonts.

How to solve this:

  • the dirty solution is to convert the file (either the single images or the whole doc) to ps and then back to pdf with the fonts. Note that this process might mess up the layout, always check the obtained pdf. (Source)
pdftops  mypaper.pdf
ps2pdf14 -dPDFSETTINGS=/prepress mypaper.ps
  • the correct solution would be to embed the fonts when producing the images.
    • examples coming up in the future