Output Bin is an IPP extension attribute https://ftp.pwg.org/pub/pwg/candidates/cs-ippoutputbin10-20010207-5100.2.pdf

It is not defined in the core RFC on which javax.print was based https://www.ietf.org/rfc/rfc2911.txt

So this means it is not in the API and it will get ignored and there's no way to use it.

Implementing it would need to start with a new attribute - meaning new API - meaning there's
nothing you can do for older releases.

So first step would be an RFE to add it and all the associated implementation work.
Then apps would be able to specify it from code when setting up a job.

And really it should also then get added to the UI (ie the Java print dialog) in an appropriate location.

-phil.


On 8/4/23 6:30 AM, Alexander Scherbatiy wrote:

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


Reply via email to