gpt4 book ai didi

pdf - 在 Postscript 中添加 XMP 元数据

转载 作者:行者123 更新时间:2023-12-04 22:22:27 25 4
gpt4 key购买 nike

我在 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

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

最佳答案

pdfmark 需要在数据前添加一个标记,因此在 /Creator 之前添加 [

关于pdf - 在 Postscript 中添加 XMP 元数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31744976/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com