Setting number of copies through the API

Michael Sweet mike at easysw.com
Sat Feb 5 14:30:49 PST 2005


Ken Herron wrote:
> I'd like to enhance mozilla's CUPS support so that when the user
> requests multiple copies, mozilla requests multiple copies through
> CUPS rather than by embedding a postscript directive into the print
> job. Mozilla prints through CUPS by calling cupsPrintFile(), and I
> gather from the software programmer's manual that number of copies is
> set by adding an option to the list of options using
> cupsAddOptions(). But I can't find the name of the number-of-copies
> option.
> 
> Is there a standard name for the number-of-copies option? Where are
> names such as this documented? If there isn't a standard name, how
> would a program like mozilla figure out the correct option name at
> runtime?

There is a standard name, "copies".

See the IPP specification, the CUPS book, the SPM, etc.

-- 
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com
Internet Printing and Publishing Software        http://www.easysw.com




More information about the cups mailing list