[R] embedFonts with pdf files and Windows 7
James M. Curran
j.curran at auckland.ac.nz
Sat Feb 6 02:54:20 CET 2010
I am trying to embed fonts in my PDF images so that they are embedded
for the publisher of my book.
I am running:
Windows 7 - 64 Enterprise
I have this tiny test script:
myCall = embedFonts("test.pdf",outfile = "test-a.pdf")
which successfully issues this command to ghostscript:
 "gswin32c.exe -dNOPAUSE -dBATCH -q -dAutoRotatePages=/None
The file test.pdf is about 9kb with no fonts embedded. The file
test-a.pdf is about 4kb with no fonts embedded.
I have tried altering the options:
options = "-dEmbedAllFonts=true",
and the font path
fontpath = "C:\\Windows\\Fonts"
To no avail. The only way I can get embedFonts to work is to shift the
work over to our Linux system.
Any help would be greatly appreciated.
More information about the R-help