This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Java in General and the fly likes Passing JPS attribute from Java to Cups filter Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Passing JPS attribute from Java to Cups filter" Watch "Passing JPS attribute from Java to Cups filter" New topic
Author

Passing JPS attribute from Java to Cups filter

Oroboros Cearkoorow
Greenhorn

Joined: Nov 15, 2012
Posts: 1
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).
 
 
subject: Passing JPS attribute from Java to Cups filter