filenames - How do I get the name of Postscript file object? -
using postscript, want retrieve name of file being executed. know can file object using 'currentfile', how name?
i want include name in document.
thanks.
ghostscript has .filename
operator that'll it. no idea portability. tiny viewable example:
/times-roman findfont 12 scalefont setfont newpath 100 200 moveto currentfile .filename pop show
Comments
Post a Comment