如何在GhostScript中禁用表单字段的呈现

时间:2012-01-31 12:51:45

标签: pdf ghostscript acrofields

我正在使用GhostScript将PDF文件渲染为PNG图像。但是,我发现某些PDF的表单字段包含数据(在本例中为今天的日期),我不希望它出现在输出图像中。是否可以在GhostScript中禁用字段值的渲染?

1 个答案:

答案 0 :(得分:2)

我相信默认情况下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