• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Passing JPS attribute from Java to Cups filter

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic