【问题标题】:Postscript add footer on the last page onlyPostscript 仅在最后一页添加页脚
【发布时间】:2012-11-28 16:38:44
【问题描述】:

我正在使用生成 PostScript 文件的工具 (abcm2ps)。它让我可以添加自定义 postscript 代码。现在我知道如何在第一页添加页脚。像这样:

/cpr {
0 eq {   % first page only
gsave
/Arial 9 selectfont
300 30 moveto    % center the text
(Footer) showc
grestore
} if
} def
<< /BeginPage { cpr } >> setpagedevice

如何只在最后一页添加页脚?

谢谢!

【问题讨论】:

    标签: postscript


    【解决方案1】:

    您需要知道 PostScript 程序中有多少页,如果您不知道,则无法在“最后”页添加页脚。如果您的文件符合 DSC 标准,它会告诉您其中有多少页。

    【讨论】:

    • 好的,我检查了文件,上面写着%%Pages: (atend)
    • 找到文件末尾的页面。谢谢!
    猜你喜欢
    • 2011-06-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-10-03
    • 1970-01-01
    • 2016-07-24
    • 1970-01-01
    相关资源
    最近更新 更多