Difference between revisions of "Embed Fonts in your PDFs"
From IridiaWiki
Jump to navigationJump to searchManubrambi (talk | contribs) (New page: 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 wi...) |
(mention pdffix script) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 4: | Line 4: | ||
pdffonts my_pdf.pdf |
pdffonts my_pdf.pdf |
||
⚫ | |||
− | |||
⚫ | |||
− | |||
How to solve this: |
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. |
||
− | + | * 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]) |
|
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. |
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
- 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.
- examples coming up in the future