【发布时间】:2012-02-23 04:31:20
【问题描述】:
我正在使用 GhostScript 将 PDF 文件渲染为 PNG 图像。但是,我发现某些 PDF 的表单字段包含我不希望出现在输出图像中的数据(在本例中为今天的日期)。是否可以在 GhostScript 中禁用字段值的呈现?
【问题讨论】:
标签: pdf ghostscript acrofields
我正在使用 GhostScript 将 PDF 文件渲染为 PNG 图像。但是,我发现某些 PDF 的表单字段包含我不希望出现在输出图像中的数据(在本例中为今天的日期)。是否可以在 GhostScript 中禁用字段值的呈现?
【问题讨论】:
标签: pdf ghostscript acrofields
我相信默认情况下 Ghostscript 不会呈现 PDF 表单字段,请参阅: http://ghostscript.com/doc/current/Use.htm#PDF_switches
-dShowAcroForm
Show annotations referred from the Interactive Form Dictionary (AcroForm dictionary).
By default, AcroForm is not enumerated because Adobe Acrobat doesn't do this. This
option may be useful for debugging or recovery of incorrect PDF files that don't
associate all annotations with the page objects.
您可能需要设置开关-dShowAcroForm=false 以确保。
如果您指的是注释(默认显示),您可能还希望设置开关-dShowAnnots=false。
【讨论】: