How to select PostScript printer output tray

允我心安 提交于 2021-02-08 07:47:04

问题


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


回答1:


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



来源:https://stackoverflow.com/questions/2373120/how-to-select-postscript-printer-output-tray

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!