How can one embed a font into a PDF with free linux command line tools?
14,702
Solution 1
This should be solved by carefully reading these answers:
Solution 2
Try this:
gs -q -dNOPAUSE -dBATCH -dPDFSETTINGS=/prepress -sDEVICE=pdfwrite -sOutputFile=output.pdf input.pdf
Author by
ingomueller.net
Updated on August 02, 2022Comments
-
ingomueller.net almost 2 years
I have a set o f PDFs that display fine on my machine. However, they use non-standard fonts installed on my machine. As they are not embedded (as per pdffonts), they don't display on other machines. How can I embed this font using only linux command line tools.
BTW, under Windows, Adobe Acrobat could be used as explained here.
-
Kurt Pfeifle over 11 years@ingomueller.net: This command will work, if your non-standard fonts are located in a standard path that Ghostscript knows about. Otherwise, look at the other links I provided in my own answer.
-
Jim Paris almost 11 yearsPerfect, thank you. My document (created by
pdflatex
) was not accepted by the ScholarOne Manuscripts (S1M) document submission service until I ran it though ghostscript with this command.