[cups.general] Searching for PPD in Driver list

Helge Blischke h.blischke at acm.org
Sun May 23 10:06:45 PDT 2010


Alexander Cohen wrote:

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

Try the printer database at openprinting.org (though they prefer to present 
the PPDs generated from their own XML based repository instead providing the 
vendor's original PPDs).

Helge





More information about the cups mailing list