Communication With Scheduler

Michael Sweet msweet at apple.com
Mon Nov 9 08:30:24 PST 2009


On Nov 9, 2009, at 3:27 AM, kavin wrote:
> ...
>  please Give the Example code to update the PPD


Say you have a PPD containing an installable option called OptionDuplex:

     *OpenUI *OptionDuplex/Duplexer Installed: Boolean
     *OrderDependency: 10 AnySetup *OptionDuplex
     *DefaultOptionDuplex: True
     *OptionDuplex False/Not Installed: ""
     *OptionDuplex True/Installed: ""
     *CloseUI: *OptionDuplex

Your filter(s) can update the state of this installable option using:

     if (duplexer is present)
       fputs("PPD: OptionDuplex=True\n", stderr);
     else
       fputs("PPD: OptionDuplex=False\n", stderr);

___________________________________________________
Michael Sweet, Senior Printing System Engineer







More information about the cups mailing list