我想在使用 Java 打印时指定输入箱。我找到了 MediaTray 类,它应该对应于输入箱:
The following standard values are defined for input-trays (from ISO
DPA and the Printer MIB):
'top': The top input tray in the printer.
'middle': The middle input tray in the printer.
'bottom': The bottom input tray in the printer.
'envelope': The envelope input tray in the printer.
'manual': The manual feed input tray in the printer.
'large-capacity': The large capacity input tray in the printer.
'main': The main input tray
'side': The side input tray
Run Code Online (Sandbox Code Playgroud)
来源: https: //www.rfc-editor.org/rfc/rfc2911
问题是,我从应用程序中获取了一个指定输入箱的数字。我可以简单地映射枚举 int 值吗?或者使用数字获取枚举值的常用方法是什么?官方是否支持对托盘进行编号?
我在 RFC 中找不到与输出箱相对应的属性。还有办法做到这一点吗?
最重要的问题是:打印机接口的可靠性是高还是低?我发现人们询问托盘的大多数帖子最终都放弃了,因为他们无法让它工作。
任何经验将不胜感激。
| 归档时间: |
|
| 查看次数: |
5474 次 |
| 最近记录: |