在 Postscript 中添加 XMP 元数据

Adding XMP Meta Data in Postscript

我正在 Postscript 文件中添加 XMP 元数据,但在使用 Adob​​e Distiller 将其转换为 PDF 时遇到问题。

这是我的 PS 文件

/MainFont
/Helvetica-Bold findfont 15 scalefont def

/SloganFont
/Helvetica-Oblique findfont 7 scalefont def

/OwnerFont
/Helvetica findfont 10 scalefont def

/CardOutline
{ newpath
90 90 moveto
0 144 rlineto
252 0 rlineto
0 -144 rlineto
closepath
.5 setlinewidth
stroke } def


/doBorder
{
99 99 moveto
0 126 rlineto
234 0 rlineto
0 -126 rlineto
closepath
2 setlinewidth
stroke
} def

/Diamond
{
newpath
207 216 moveto
36 -54 rlineto
-36 -54 rlineto
-36 54 rlineto
closepath
.8 setgray fill
} def

/doText
{
0 setgray 105 200 moveto
MainFont setfont
(Diamond Cafe) show

105 188 moveto
SloganFont setfont
("The Club of Lonely Hearts") show
265 126 moveto
OwnerFont setfont
(Sam Spade) show
270 111 moveto
(Owner) show


}def


CardOutline
doBorder

doText
Diamond
showpage

/Creator (FrameMaker 6.0)
/CreationDate (D:20020214144924)
/ModDate (D:20020215142701)
/Author(John Doe)
/Title (Processing XMP Data in EPS Files)
/Subject (XMP)
/Keywords (XMP, pdfmark)
/DOCINFO pdfmark

在这个 post 脚本文件的末尾,我附加了 XMP 元数据,所以我希望当这个 post 脚本生成 PDF 时,它会在 XMP 中显示元数据。

pdfmark 需要在数据前加一个标记,所以在 /Creator.

前添加 [