Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Passing JPS attribute from Java to Cups filter  RSS feed

Oroboros Cearkoorow
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!