java - cups4j : how to print with monochrome attribute -


i want print document using cups4j monochrome attribute. can't find job-attributes option.

could me please ?

the part of code related attribute is:

hashmap<string, string> attributemap = new hashmap<string, string>(); attributemap.put("job-attributes", "print-color-mode-supported:keyword:monochrome"); printjob printjob = new printjob.builder(fileinputstream).jobname("testjobname").username("admin").copie‌​s(copies).pageranges(pages).duplex(duplex).attributes(attributemap).build(); printrequestresult printrequestresult = printer.print(printjob); 


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -