我想在使用Java打印時指定輸入紙盒。我發現這應該對應於輸入箱櫃MediaTray類:使用javax.print打印時選擇紙盒/紙盒
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
來源:http://tools.ietf.org/html/rfc2911
的問題是,我得到了一些從指定輸入盒的應用。我可以簡單地映射enum int值,或者使用數字來獲取枚舉值的常用方法是什麼?它甚至正式支持托盤數量?
我在RFC中找不到與輸出區對應的屬性。有沒有辦法做到這一點?
而最重要的問題是:打印機接口或多或少可靠?我發現人們詢問托盤的大多數線索最終都放棄了,因爲它們無法使其工作。
任何經驗,將不勝感激。
*「和最重要的問題:是打印機接口或多或少地可靠?「*也許這個API是Sun/Oracle對環保主義的貢獻。 「拯救樹木!」 ;) –
[使用屬性(紙盒控制,雙面打印等)使用javax.print庫打印](http://stackoverflow.com/questions/14328012/printing-with-attributestray-control-duplex- etc-using-javax-print-library) –