Setting printer output bin
Alexander Scherbatiy
alexander.scherbatiy at bell-sw.com
Fri Aug 4 13:30:47 UTC 2023
Hello,
"8234393: [macos] printing ignores printer tray" fix [1] allows to set a
printer tray by passing a supported MediaTray to
PrinterJob.print(attributes) method on macOS.
My question is about setting a printer output bin as well.
I debugged attributes which IPPPrintService.opGetAttributes() method [2]
retrieves by IPP on my macOS with Kyocera printer installed and got:
key: output-bin-default, value: top
key: output-bin-supported, value: top, face-down
but I can't find how these default/supported values are stored in media
classes either by IPPPrintService or CUPSPrinter.
Is there a media class which can be passed as attribute to the
PrinterJob.print(attributes) method to set a printer output bin or a new
class needs to be added?
Thanks,
Alexander.
[1] https://github.com/openjdk/jdk/pull/509
[2]
https://github.com/openjdk/jdk/blob/29f1d8ef50e3b4b235177fd9642a1fcf26fe3bab/src/java.desktop/unix/classes/sun/print/IPPPrintService.java#L1842
More information about the client-libs-dev
mailing list