Communication With Scheduler

Michael Sweet msweet at apple.com
Tue Nov 10 16:56:43 PST 2009


If your filter is crashing, you need to look at the core file that is  
created by the OS.

On Nov 10, 2009, at 3:31 AM, kavin wrote:

> Hi,
>
>
>   Thanks to reply to me,
>
> I want to update the PPD option Ribbon Model which was described in  
> Installable options in PPD file , for that i wrote a code that  
> detects the USB port and send the command to read the ribbon  
> type ,and placed in my filter file's main function,the code is follows
>
>             int Printer_Id=open_printer_fd();
>             get_Ribbon_model(Printer_Id);
>
> whenever i invoking above code i am getting error in Printer Dialog  
> Box that follows
>    Printer State: idle-/usr/lib/cups/filter/rastertolabel failed
>
> But in separately the code works fine,in case with filter code only  
> it makes like that error.
>
> pls guide me to resolve the problem
>
> Thanking You
> Kavin
>
>
>
>> 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
>>
>>
>>
>
> _______________________________________________
> cups-ddk mailing list
> cups-ddk at easysw.com
> http://lists.easysw.com/mailman/listinfo/cups-ddk

___________________________________________________
Michael Sweet, Senior Printing System Engineer







More information about the cups-devel mailing list