[OS X TeX] [OT] Embedding fonts in images
Bruno Voisin
bvoisin at mac.com
Thu Mar 13 03:32:49 EDT 2008
Le 13 mars 08 à 05:39, Charilaos Skiadas a écrit :
> On Mar 12, 2008, at 5:57 AM, Siep Kroonenberg wrote:
>
>> On Tue, Mar 11, 2008 at 09:16:12PM -0400, Charilaos Skiadas wrote:
>>> Hope someone on this list can help me with what should be a pretty
>>> common
>>> problem, though not directly related to LaTeX. I have some images
>>> in pdf
>>> format, generated from R but perhaps that's not directly relevant.
>>> My
>>> publisher has asked me to embed all fonts, including things like
>>> Helvetica,
>>> Symbol, Zapf Dingbats etc, and I have so far been unable to do so.
>>> I tried
>>> ghostscript, with a call that looks like this:
>>>
>>> gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=cha03fig03E.pdf
>>> -dCompatibilityLevel=1.3 -dSubsetFonts=true -dEmbedAllFonts=true
>>> -sFONTPATH= cha03fig03.pdf
>>
>> Try adding -dPDFSETTINGS=/prepress
>
> Brilliant, that did it!
>
> And from within R, this could be done with something like:
>
> embedFonts("~/Desktop/test1.pdf",outfile="~/Desktop/test3.pdf",
> options ="-dPDFSETTINGS=/prepress")
Whao!
Siep, where does one find about such things? Apparently, the only
place in the gs docs where PDFSETTINGS is mentioned is for pd2pdf, not
gs itself, and without much detail on the various possible values of
PDFSETTINGS. From /usr/local/share/ghostscript/8.57/doc/Ps2pdf.htm:
> ps2pdf also recognizes the following options:
>
> [...]
>
> -dPDFSETTINGS=configuration
>
> Presets the "distiller parameters" to one of four predefined settings:
>
> • /screen selects low-resolution output similar to the Acrobat
> Distiller "Screen Optimized" setting.
> • /ebook selects medium-resolution output similar to the Acrobat
> Distiller "eBook" setting.
> • /printer selects output similar to the Acrobat Distiller "Print
> Optimized" setting.
> • /prepress selects output similar to Acrobat Distiller "Prepress
> Optimized" setting.
> • /default selects output intended to be useful across a wide
> variety of uses, possibly at the expense of a larger output file.
Bruno Voisin
More information about the MacOSX-TeX
mailing list