How do I embed fonts in an existing PDF?

后端 未结 4 736
無奈伤痛
無奈伤痛 2020-12-05 06:49

Background:

I have PDF\'s I am programmatically generating. I need to be able to send the PDF directly to a printer from the server (not through an

4条回答
  •  清歌不尽
    2020-12-05 07:36

    Besides Ghostscript, it is also possible to use Poppler and Cairo. There is a command pdftocairo from Poppler that converts PDF to PDF via pdftocairo -pdf input.pdf output.pdf. It also considers font substitutions set in a Fontconfig configuration file. This is very helpful if you do not have all fonts on your system that are referenced in a PDF file, but know which other font you have installed is a good-looking replacement. After processing, the substitution font is embedded.

提交回复
热议问题