[cups.development] Which property of ppd_file_t to look at to figure out if it has duplex enabaled or note

Michael Sweet msweet at apple.com
Mon Dec 19 12:50:58 PST 2011


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





More information about the cups-devel mailing list