【发布时间】:2017-01-03 10:00:45
【问题描述】:
使用 Ghostscript 9.19、Windows 10 专业版
我正在使用 Ghostscript 将现有的 PDF 转换为 PDF/A-1b。
但是,即使我的原始 PDF 中已经嵌入了所需的字体, Ghostscript 正在输出 PDF/A 文件中替换它们。
具体来说: 将字体 Times-Bold 替换为 Times New Roman,Bold。 将字体 Times-Roman 替换为 Times New Roman。 用 Times-Italic 字体替换 Times New Roman,Italic。
我的机器上安装了 Times New Roman(默认安装)。
这是我的命令行:
C:\Program Files\gs\gs9.19\bin>gswin64c -dPDFA -dBATCH -dNOPAUSE
-sProcessColorModel=DeviceCMYK -sDEVICE=pdfwrite
-sPDFACompatibilityPolicy=1 -sFontPath=C:/Windows/Fonts
-IC:/windows/fonts -sOutputFile=C:/temp/testerA.pdf c:/temp/tester.pdf
为什么 Ghostscript 会替代嵌入字体?
如何防止 Ghostscript 替换嵌入的字体?
编辑:我系统中 Times 字体的屏幕截图显示该名称与 PDF 中的嵌入名称匹配:
【问题讨论】:
-
嗯,如果所有字体都已包含在 pdf 中,我将删除这些选项
-sFontPath=C:/Windows/Fonts -IC:/windows/fonts,并可能添加-dNOPLATFONTS -
我最初在命令行中没有字体路径的情况下进行了转换,但仍然看到相同的替换。我后来添加了路径以解决它,但替换仍在继续......
标签: pdf ghostscript