pass argument to cupsraster driver
Michael Sweet
mike at easysw.com
Fri Feb 3 18:07:16 PST 2006
anonymous wrote:
> I put the ModelName my rastertomyprinter driver supports in PPD's drop down
> box.
>
> How do I pass the model name to rastertomyprinter filter?
>
> The way I think will work is:
> 1. Parse option argument (argv[5]) to find ModelName.
> 2. If not passed in, use ppdFindOption API and get defchoice.
>
> Is this the way I'm supposed to use?
You can do that, or just use:
ppdOpen
ppdMarkDefaults
cupsParseOptions
cupsMarkOptions
and then use ppdFindMarkedChoice() to get the marked choice for an
option.
> What's ppdFindMarkedChoice? What's marked choice?
A marked choice is the option choice that has been selected (marked).
--
______________________________________________________________________
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