如何选择 PostScript 打印机输出托盘 [英] How to select PostScript printer output tray

查看:63
本文介绍了如何选择 PostScript 打印机输出托盘的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用 PostScript 时遇到了问题,尤其是 setpagedevice 操作符.

目标:我想设置页面大小,选择输出托盘,然后执行我的 PostScript 操作.例如,对于在 A3 上打印到纸盘 3,没有双面打印,我说

<块引用>

<</DeferredMediaSelection true/PageSize [842 1191]/ImagingBBox null/MediaClass null>>setpagedevice

<代码><</MediaPosition 2/TraySwitch false>>setpagedevice

<代码><</Duplex false/Tumble false>>setpagedevice

这最初效果很好,但是当我想切换到另一个来源时,如 MPT 或纸盒 4 左右,打印机突然总是想使用手动纸盒.不知何故,我必须在打印机上离开状态.

更多信息:实际上,问题在于:如果打印机上的纸张来源设置为自动选择,则上述代码可以正常工作.如果打印机上的纸张来源设置为其他内容,则上述代码不起作用

解决方案

PJL(打印机作业语言)可能是您的答案.讨论 &文档.>

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

解决方案

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

这篇关于如何选择 PostScript 打印机输出托盘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆