pass argument to cupsraster driver

anonymous yliu0131 at brockport.edu
Mon Feb 6 11:19:14 PST 2006


>> 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 if I want to use command line to pass in ModelName that's not defined in PPD file? ppdFindMarkedChoice() will still give me the default choice.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cups.org/pipermail/cups/attachments/20060206/0af4db74/attachment.html>


More information about the cups mailing list