【问题标题】:How to disable rendering of form fields in GhostScript如何在 GhostScript 中禁用表单字段的呈现
【发布时间】:2012-02-23 04:31:20
【问题描述】:

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

【问题讨论】:

    标签: pdf ghostscript acrofields


    【解决方案1】:

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

    【讨论】:

    • 感谢您的回复!我试图设置 -dShowAcroForm=false 但它没有帮助。我也尝试了 -dShowAnnots=false 参数,但它会给我一个错误。我正在测试的文件可以在link 找到。请注意最后一页左下角的日期将如何与 PDF 的创建日期一起呈现。但是,如果您在 Acrobat Reader 中打开它,它将是一个预先填充了今天日期的可编辑字段。
    猜你喜欢
    • 1970-01-01
    • 2014-04-04
    • 2011-12-30
    • 2020-06-23
    • 2019-12-07
    • 2019-07-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多