[cups.general] Searching for PPD in Driver list

Michael Sweet msweet at apple.com
Sat May 22 13:43:43 PDT 2010


On May 22, 2010, at 8:37 AM, Alex Cohen wrote:
> Hello, Does the CUPS website give an API or some sort of access for programmatically searching for a driver or PPD for a named printer?


See the discussion of CUPS-Get-PPDs in the following document:

    http://www.cups.org/documentation.php/spec-ipp.html

You'll need to create your own IPP requests to get the list of matching PPDs, and then do a CUPS-Add-Modify-Printer request with the corresponding ppd-name:

    http://www.cups.org/documentation.php/api-httpipp.html

The source for lpinfo can be used as a template for the first part, and the source of lpadmin for the second:

    http://svn.easysw.com/public/cups/trunk/systemv/lpinfo.c
    http://svn.easysw.com/public/cups/trunk/systemv/lpadmin.c

________________________________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair








More information about the cups mailing list