1

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

Carsten Kuckuk
  • 879
  • 6
  • 15
  • 2
    Setting the paper source on the printer's panel (or via the printer's web interface) overrides settings embedded in the PostScript file. – Kurt Pfeifle Aug 17 '10 at 10:10
  • What kind of printer do you have? When you say "the Paper Source on the printer is set...", what action are you taking -- pushing front panel buttons? Selecting option in printer control panel web page? What does that printer's documentation say about which takes precedence, the PostScript language paper source setting or the front panel buttons or the printer's control panel web page? – Jim DeLaHunt Jan 26 '12 at 19:23

1 Answers1

0

PJL (Printer Job Language) may be your answer. Discussion & Documentation.

aidan
  • 9,310
  • 8
  • 68
  • 82