如何使用 Pdfmark 和 Ghostscript 应用简单的格式化文本图章



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

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

所以我的问题来了:是否可以使用简单的 Pdfmark 文件在页面上以 45 度为中心应用文本戳记,例如文本 DRAFT,而不必使用外观流、XObjects 等?如果是这样,如何?

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

但是,PDF 1.7参考手册在"橡皮图章注释"下说(第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 度,注释没有矩阵条目,因此我不相信您可以在不指定外观流的情况下可靠地执行此操作。

最新更新