【问题标题】:can we convert PDF containing Embedded Fonts to NonEmbedded(standard fonts) PDF document using Ghostscript?我们可以使用 Ghostscript 将包含嵌入式字体的 PDF 转换为非嵌入式(标准字体)PDF 文档吗?
【发布时间】:2021-03-02 19:50:37
【问题描述】:

我已经尝试了以下命令

$ghostscript -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/printer -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf inputwithembeddedType1.PDF

$ghostscript -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/printer -dEmbedAllFonts=false -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf inputwithembeddedType1.PDF

在第一种情况下,AdobeReader 的输出是正确的,但它仍然是嵌入式字体,因此由于不支持嵌入式 PDF 字体的限制,无法解析到 我的应用程序中。

第二个命令有效并创建了一个 PDF 文件,但无法在 Adob​​eReader 和我的应用程序中打开。

任何帮助将不胜感激。非常感谢!

【问题讨论】:

    标签: pdf fonts ghostscript


    【解决方案1】:

    感谢我通过使用 dNoOutputFonts 进行了一些研究得到了答案。这对我来说效果很好

    ghostscript -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/printer -dNOPAUSE -dNoOutputFonts -dQUIET -dBATCH -sOutputFile=output.pdf inputwithembeddedType1.PDF 
    

    【讨论】:

      猜你喜欢
      • 2021-02-04
      • 1970-01-01
      • 2016-08-29
      • 2021-02-11
      • 2015-04-20
      • 2018-02-13
      • 2012-09-13
      • 2011-02-09
      • 1970-01-01
      相关资源
      最近更新 更多