Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can one embed a font into a PDF with free linux command line tools? [closed]

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.

like image 331
ingomueller.net Avatar asked Dec 17 '12 10:12

ingomueller.net


2 Answers

Try this:

gs -q -dNOPAUSE -dBATCH -dPDFSETTINGS=/prepress -sDEVICE=pdfwrite -sOutputFile=output.pdf input.pdf
like image 194
Sergey Stolyarov Avatar answered Oct 24 '22 19:10

Sergey Stolyarov


This should be solved by carefully reading these answers:

  • How to repair a PDF file and embed missing fonts
  • How do I embed fonts in an existing PDF?
like image 22
Kurt Pfeifle Avatar answered Oct 24 '22 20:10

Kurt Pfeifle