You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

GhostScript替换已嵌入字体问题及PDFA转换故障咨询

GhostScript(GS)字体处理异常问题

我对GhostScript的工作逻辑感到困惑:按认知GS仅替换未嵌入字体,不应改动已嵌入字体,但实际出现了替换情况。我的PDF包含2个已嵌入子集字体(注:osadzony podzestaw=embedded subset)和1个未嵌入字体(ArialMT)。

使用的命令如下:

"gswin64c.exe -I "C:/Program Files/gs/gs9.56.1/Resource/Init" -sFONTMAP="Fontmap.GS" -dNOSAFER -dPDFACompatibilityPolicy=1 -sColorConversionStrategy=LeaveColorUnchanged -dBATCH -dNOPAUSE -sDEVICE="pdfwrite" -dAutoRotatePages=/None -dPDFA=3 -sOutputFile="pdfa.pdf" "original.pdf"

执行命令后出现如下错误:

GPL Ghostscript 9.56.1: Actual TT subtable offset xxxxx differs from one in the TT header yyyy. (multiple ones like this)

The following errors were encountered at least once while processing this file:
        error executing PDF token

   **** This file had errors that were repaired or ignored.
   **** The file was produced by:
   **** >>>> StreamServe Communication Server 16.6.1 GA Build 319 (64 bit) <<<<
   **** Please notify the author of the software that produced this
   **** file that it does not conform to Adobe's published PDF
   **** specification.

最终输出的PDF文件不含任何字体。

现提出两个疑问:

  • 是否有办法强制GS在未找到系统字体时不进行替换?
  • 为何我已在FontMap.GS文件中指定ArialMT的具体路径,GS仍将其替换为NimbusSans-Regular?

注:因含敏感客户数据无法共享该PDF文件。

内容的提问来源于stack exchange,提问作者nvko

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.19 03:35:26