【问题标题】:How do I apply a simple formatted text stamp with Pdfmark and Ghostscript如何使用 Pdfmark 和 Ghostscript 应用简单的格式化文本图章
【发布时间】:2012-09-10 02:03:04
【问题描述】:

我已经成功地使用 ghostscript 和 Pdfmarks 应用笔记、手绘图(Type Ink)、突出显示等。现在我想对文本图章(不是位图)做同样的事情,但不知道怎么做。

窥视一个未压缩的标记文件(感谢 pdftk 的解压缩和 Acrobat Professional 的标记)我看到我的自定义文本标记最终成为一个 XObject,它在 Stamp 注释的外观流中被引用。很复杂,我想。

所以这是我的问题: 是否可以使用一个简单的 Pdfmark 文件应用一个文本标记,例如以页面为中心 45 度以下的文本 DRAFT,而无需使用外观流、XObjects 等?如果有,怎么做?

【问题讨论】:

    标签: pdf pdf-generation ghostscript


    【解决方案1】:

    如果您不为注释提供外观流,那么您将完全依赖于 PDF 使用者选择为其绘制的任何内容。那可能没什么。

    但是,PDF 1.7 参考手册在“Rubber Stamp Annotations”下说(第 635 页):

    Name    name          (Optional) The name of an icon to be used in displaying the annotation. Viewer applications should provide predefined icon appearances for at least the following standard names:
    Approved     Experimental    NotApproved
    AsIs         Expired         NotForPublicRelease
    Confidential Final           Sold
    Departmental ForComment      TopSecret
    Draft        ForPublicRelease
    
    Additional names may be supported as well. Default value: Draft.
    Note: The annotation dictionary’s AP entry, if present, takes precedence over the Name entry; see Table 8.15 on page 606 and Section 8.4.4, “Appearance Streams.”
    

    所以是的,您应该能够成功地将“草稿”用作注释而不提供外观流,并且您可以使用所需的“矩形”条目将其置于页面中心。不过,我不太确定是否将其旋转 45 度,注释没有 Matrix 条目,所以我不相信您可以在不指定外观流的情况下可靠地做到这一点。

    【讨论】:

    • Ken,感谢您调查我的问题。但是我的问题根本没有回答。请允许我改述一下:是否可以使用文本标记,例如文本 WIKILEAKS,其格式(颜色、字体)低于 45 度,以页面为中心,使用简单的 Pdfmark 文件,而无需使用外观流、XObjects 等?如果有,怎么做?
    • 不,你不能那样做。任何比 PDF 参考手册中记录的简单图章更复杂的东西都需要外观流。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-07-16
    • 2010-10-23
    • 2019-10-02
    • 1970-01-01
    • 2012-06-26
    • 2013-06-02
    相关资源
    最近更新 更多