|
| Written by Batuhan Osmanoglu |
| Thursday, 12 November 2009 20:42 |
Embed fonts in EPS/PDFSome publishers require all fonts to be embedded in the EPS/PDF files before you submit your paper for review. This "naive" request can cause quite some trouble. I prepare my figures in EPS format and use them in LaTeX that way. So for me the question was how to "Re-Write and EPS and embed figures?" Command For Converting EPS to PDF and embedding fonts: ps2pdf -dSubsetFonts=true -dEmbedAllFonts=true TimeSpan.eps TimeSpanEmbedded.pdf However the "EmbedAllFonts=true" does not really work until you edit a configuration file for ghostscript. Kurniawano's blog helped a lot. On a Ubuntu 9.04 system the file is located at: /usr/share/ghostscript/8.64/Resource/Init/gs_pdfwr.ps If it is not there look for gs_pdfwr.ps file in your operating system. We need to edit this file and comment out the "standardfonts". This is how mine looks after commenting out the definitions: /.standardfonts [ I also updated my character map files using the following command line but I'm not sure about it's necessity: updmap --setoption pdftexDownloadBase14 true We can use pdffonts utility after converting the EPS files to PDF. $ pdffonts TimeSpanEmbedded.pdf I wanted to have EPS files as the final product. For that I used the following commandline to convert the PDF back to EPS: $ pdftops -eps TimeSpanEmbedded.pdf See Also
|