[cups.development] Which property of ppd_file_t to look atto figure out if it has duplex enabaled or note
Michael Sweet
msweet at apple.com
Mon Dec 19 13:17:49 PST 2011
The default value is in "defchoice", which will be "None" for 1-sided and "DuplexTumble" or "DuplexNoTumble" for 2-sided.
On Dec 19, 2011, at 1:11 PM, Azuri wrote:
> I tried using PPDfindOption with Duplex as option. So I get this whole PPD_option)t object but not sure which property of this object exactly will tell me if it duplex or not
>
>
>> The "Duplex" option is normally used to control double-sided printing. ppdFindOption is your friend.
>>
>> Of course if you are going to be printing, just use cupsGetDests (or cupsGetNamedDest) and look at the value of the "printer-type" option - CUPS_PRINTER_COLOR and CUPS_PRINTER_DUPLEX are in the bitfield and will tell you the color and duplex capabilities, respectively.
>>
>> On Dec 19, 2011, at 12:20 PM, Azuri wrote:
>>
>>> I want to know two propertied from PPD file of my printer. One is whether its grayscale and other is whether it has duplex enabled. For grayscale test I believe I need to check colorspace property is set to Gray right? But I dont know how to checkt he duplex property? Which atribute of aap_file_t object should I be looking at.
>>> _______________________________________________
>>> cups-dev mailing list
>>> cups-dev at easysw.com
>>> http://lists.easysw.com/mailman/listinfo/cups-dev
>>
>> ________________________________________________________________________
>> Michael Sweet, Senior Printing System Engineer, PWG Chair
>>
>
> _______________________________________________
> cups-dev mailing list
> cups-dev at easysw.com
> http://lists.easysw.com/mailman/listinfo/cups-dev
________________________________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair
More information about the cups
mailing list