[Tioga-users] Embedded fonts

Roy Mayfield roym at ce.washington.edu
Tue Mar 13 10:28:38 EDT 2007


Vincent Fourmond wrote:
> Bill Paxton wrote:
>> On Mar 9, 2007, at 9:16 AM, Roy Mayfield wrote:
>>
>>> Hi Bill,
>> Any TeX text that shows up in the figure will need to have it's fonts  
>> embedded, so if
>> you can trick it into doing ZapfDingbats, we might have a workaround.
> 
>   Seems like my post got lost ;-)...
> 
>   So here is a summary of what you need to do to embed the PDF standard
> fonts inside a PDF. You really should have all the tools here as a part
> of a standard LaTeX installation - you might need to install xpdf,
> though, to get pdftops. I can't get gs to work with this yet. First run
> 
> pdftops -eps Plot.pdf
> 
> This produces an EPS file, Plot.eps. Then, run the following
> command-line to convert it back to PDF embedding also the standard fonts:
> 
> epstopdf --nogs Plot.eps |gs -q -sDEVICE=pdfwrite
> -dAutoRotatePages=/None -dPDFSETTINGS=/prepress -sOutputFile=Plot_new.pdf -
> 
> (do not forget the - at the end of the command !). And, now, all fonts
> are embedded, which you can check with pdffonts:
> 
> 23:01 vincent at tanyaivinco ~ pdffonts Plot_new.pdf
> name                                 type         emb sub uni object ID
> ------------------------------------ ------------ --- --- --- ---------
> YOPKJB+CMR10                         Type 1C      yes yes no      11  0
> ICPHXL+CMMI10                        Type 1C      yes yes no      13  0
> MCEARB+CMSY10                        Type 1C      yes yes no      15  0
> ACTAOE+ZapfDingbats                  Type 1C      yes yes no       9  0
> 
>   When I have some time, I'll write a little shell script to do this
> thing; I'll include it into the tioga distribution to make life simpler
> for people in your case.
> 
>   Cheers, I hope it will help !
> 
> 	Vincent

Thanks Vincent,

Your suggestion is consistent with other online posts.  I lashed up a slightly
simpler one-step method using Ghostscript:

gs -q -dNOPAUSE -dBATCH -dPDFSETTINGS=/prepress -sDEVICE=pdfwrite
-sOutputFile=output.pdf input.pdf

This causes Ghostscript to read input.pdf and write to output.pdf; the /prepress
setting causes Ghostscript to embed all the fonts.  I found, though, that just
running this on my dissertation pdf didn't fix the problem; I had to run it on
the individual figures then rerun pdflatex.  To make this manageable, I wrote
the figure filenames to a text file then ran a cheesy little bash script to
grind through the whole list.  This worked just fine for me, but I strongly
suggest creating a backup of all files that are being processed.

By the way, I am working on a Gnu/Linux box with the Kubuntu 3.10 distribution.
-- 
Cheers,
Roy



More information about the Tioga-users mailing list