Michael,
In PostScript there is a command
setpagedevice. Its description in the Adobe Red Book is somewhat arcane, as one of my colleagues put it. (But he's an attorney- he uses words like that!)
The setpagedevice command is used in conjunction with other commands, and these other commands dictate for instance the MediaType or MediaColor. The parameters allowed as values for say MediaType may depend on the implementation of PS on your actual printer.
The syntax would look something like this, at the appropriate point in the PS code. You would have another one with a different value later on to change it to something else.
Code:
%
% some PS up to here
% and here comes the media selection...
<<//MediaType(letterhead)>> setpagedevice
% and more PS to follow.
My personal knowledge is of Xerox DocuTech printers, where from the console you tell the printer that the medium 'letterhead' is in tray 2 say, and maybe there's some 'plain' in tray 4. I daresay that varies across makes, so you'll need to find out how to associate the media type with a physical tray.
Duplex is another setpagedevice command, and is boolean, true or false thus:
Code:
<</Duplex(true)>> setpagedevice
Check with your vendor about the wisdom of switching too often between simplex and duplex. Depending on the design of the printer's paper path, it may flush the path between each switch, thus losing opportunities to print on each 'heartbeat' so to speak, and you may suffer throughput degradation. You may have to weigh up those throughput considerations with the penalty incurred with printing some blank back pages.
If you don't have the RedBook you can get it at Adobe's site, you can get it here:
You should check with your vendor to see if there's a "PS Language Printer Addendum" for your printer, assuming it uses a genuine Adobe RIP not a clone.
Hope that gives you a start..... Jim Brown,
Johannesburg,
South Africa.
My time is GMT+2