Hi all,
I'm working on a lprng's filter on Redhat 5 enteprise.
With my filter I want to insert text (a system number) on the top of every page.
To do that I've tried the following solution that works for many cases:
gsave
/Times-Roman-Bold findfont
10 scalefont
setfont
newpath
150 820 moveto
("text I want to insert") show
grestore
I insert that code after each "%%Page:" lines or before each "showpage"
The problem is that it doesn't always work. It depends on the application that has generated the PS. Sometimes my text doesn't appear.
The other problem is for PS files that do not contains any "%%Page", and only 1 "showpage" (html2ps generates that kind of file), my text appears only on the first page.
My question is the following:
Is there a PostScript solution to insert text on the top of every page with only 1 command (not after each %%Page but only once at the beginning of the document for exemple) ?
Thank you very much in advance for any suggestion
Romain