[cups.general] Searching for PPD in Driver list

Alexander Cohen naftaly at mac.com
Mon May 24 08:26:46 PDT 2010


On May 22, 2010, at 4:43 PM, Michael Sweet wrote:

> 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

My question was not clear, sorry. I know how to use the cups API to get local PPD's. What im looking for is a WebService or some sort of online repository that I can programmatically query in order to find a PPD for a specific printer.

thx

AC





More information about the cups mailing list