I have a demo.ps file that prints out demo on all documents. I would like to add code to print out a cover page that prints the username before each document. Can someone help with an example of the code needed. Thanks.
PostScript doesn't interact with the OS that way. Keep in mind that PostScript is device independent, and is primarily meant to be interpreted by "output devices", such as printers and high-end print production machines. Such devices have no concept of "username".
The typical way to handle this is to write a program in a "typical" language such as Visual Basic or C++ that gathers all of the custom data you want, such as username, and then emits a PostScript program which includes that data.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.