자바로 인쇄 할 때 입력 빈을 지정하고 싶습니다.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
출처 : I는 입력 쓰레기통에 해당한다 MediaTray 클래스를 발견했습니다 http://tools.ietf.org/html/rfc2911
문제는 내가 입력 함을 지정하는 응용 프로그램의 숫자를 얻을 것이다. 단순히 enum int 값을 매핑하거나 숫자가있는 enum 값을 가져 오는 일반적인 방법은 무엇입니까? 트레이의 번호를 매기는 것이 공식적으로 지원됩니까?
RFC에서 출력 용지함에 해당하는 속성을 찾을 수 없습니다. 그것을 할 수있는 방법이 있습니까?
그리고 가장 중요한 질문은 프린터 인터페이스의 안정성이 어느 정도입니까? 대부분의 쓰레드는 트레이가 작동하지 않을 수 있기 때문에 결국 포기한 것에 대해 사람들이 묻는 곳에서 발견되었습니다.
모든 경험이 인정 될 것입니다.
* "그리고 가장 중요한 질문입니다 프린터 인터페이스가 다소 안정적입니까? "*이 API는 Sun/Oracle이 환경 보호에 기여한 것일 수 있습니다. '나무를 구해라!' ;) –
[javax.print library를 사용하여 [특성 (용지함 제어, 양면 인쇄 등 ...)을 사용하여 인쇄] (http://stackoverflow.com/questions/14328012/printing-with-attributestray-control-duplex- etc-using-javax-print-library) –