aspose file tools*
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 Java 8 in Action this week in the Java 8 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).
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Passing JPS attribute from Java to Cups filter
 
Similar Threads
Pring API suggestion needed
How to pass attribute to a custom tag only if it evaluates to a non null value
Print a document using java API
Printing
JPS - printing to IPP printer