如何在 GhostScript 中禁用表单字段的渲染

发布于 2025-01-01 00:30:31 字数 120 浏览 0 评论 0原文

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

I am using GhostScript to render PDF files to PNG images. However, I have discovered that some PDF's have form fields that contain data (in this case todays date) that I would not like to be present in the output image. Is it possible to disable rendering of field values in GhostScript?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

未央 2025-01-08 00:30:31

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

I believe that by default Ghostscript won't render PDF form fields, see:
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. 

You may want to set the switch -dShowAcroForm=false to be sure.

If you're referring to annotations (which are shown by default), you may wish to also set the switch -dShowAnnots=false.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文