-
1. Re: How to pass PS header data to pdfmark?
Mr. Horton May 27, 2011 11:00 AM (in response to benwiggy)I don't think that standard PostScript interpreters parse the comment lines automatically so that you would have populated variables/strings available to your PostScript program after the %%EndComments line. (maybe Dov Isaacs knows for sure).
One alternative would be to add at the end of your epiloque a procedure that reads lines in from "currentfile" as strings until "%%EndComments" is found and parses the strings (looking for strings that start with "%%Creator:", "%%Title", etc. and defining your own variables based on the value portion of the strings.
Redbook example of currentfile useage:
/str 100 string def
currentfile str readline
here is a line of text
pop /textline exch def
You would have to be a little bit fancier than this but I hope the concept makes sense.

