A printer-specific driver from Windows will typically produce postscript for an HP printer which begins like this (note the the two non-ascii characters --- one at the beginning, one just before the Postscript itself begins):
%-12345X\@PJL JOB NAME=\"Simonh's Stuff\"
@PJL SET RET=OFF
@PJL SET DUPLEX=OFF
@PJL SET PRINTONBACKSIDE=OFF
@PJL SET CLEANING=OFF
@PJL SET ECONOMODE=OFF
@PJL SET OUTBIN=UPPER
@PJL SET FINISH=NONE
@PJL SET PAGEPROTECT=AUTO
@PJL SET PAPER=A4
@PJL SET HOLD=OFF
@PJL SET RESOLUTION=600
@PJL ENTER LANGUAGE=POSTSCRIPT
M%!PS-Adobe-3.0
%%Copyright: PS driver - Copyright 1996-2000 Hewlett-Packard Co.
%%Title: Microsoft Word - Document1
%%Creator: HP/Oak PS2 Driver
%%BoundingBox: (atend)
...
...
The line @PJL SET PAPER=A4 sets the paper-tray.
| ...previous | up (conts) | next... |