Which property of ppd_file_t to look atto figure out if it has duplex enabaled or note

Azuri azuri.shah at fmr.com
Mon Dec 19 13:20:13 PST 2011


Will defChoice value be the right paramaeter to look in to?

> 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
> >
>





More information about the cups-devel mailing list