I'm having problems with PostScript, especially the setpagedevice operator.
Goal: I want to set the pagesize, select the output tray and then do my PostScript thing. For example, for printing on A3 to tray 3, no duplex, I say
<</DeferredMediaSelection true /PageSize [842 1191] /ImagingBBox null /MediaClass null>> setpagedevice
<</MediaPosition 2 /TraySwitch false>> setpagedevice
<</Duplex false /Tumble false>> setpagedevice
This works well initially, but when I want to switch to another source, like MPT or Tray 4 or so, the printer suddenly always wants to use the manual paper tray. Somehow I must be leaving state on the printer.
More Info: Actually, the problem is this: If the Paper Source on the printer is set to Auto Select, the above code works fine. If the Paper Source on the printer is set to something else, the above code does not work