Forums Register Login

Passing JPS attribute from Java to Cups filter

+Pie Number of slices to send: Send
I've got a problem with Java Printing Service (javax.print.*). Nobody could answer my question on other coding websites, maybe here I'll get some help.

I need to pass some data from Java to printer's driver. As far as I know, this can be done with Attributes. I decided to use JPS as client and Cups as server. It works, but all my custom attributes are ignored, and even are not transfered to Cups. That's because these are not in getSupportedAttributeCategories() list, I guess. Beacuse all standard attributes (like javax.print.attributes.standard.Copies) are passed.

How can I pass my custom print request (job or doc) attributes to Cups (actually, to Cups filter)? I'm bound to JPS (as being standard way of printing, so I can't use Cups4j or else).
Let me tell you a story about a man named Jed. He made this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 875 times.
Similar Threads
Print a document using java API
JPS - printing to IPP printer
Pring API suggestion needed
How to pass attribute to a custom tag only if it evaluates to a non null value
Printing
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 10:16:23.