Adding XMP Metadata to Postscript

I am adding XMP metadata in a Postscript file, but I am facing the problem of hiding it in PDF using Adobe Distiller.

Here is my PS file

/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

      

At the end of this postscript file I have included the XMP metadata, so I wish that when this postscript creates the PDF, it will show the metadata in XMP.

+3


source to share


1 answer


pdfmark needs a sign before the data, so add [

before /Creator

.



+1


source







All Articles