Determine hardware and virtual printers

Dmitry alex_x1980 at tut.by
Tue Sep 8 17:10:34 PDT 2009


> On Sep 8, 2009, at 10:44 AM, Dmitry wrote:
> > Hi. Is there a way in CUPS API to determine which printers are
> > hardware and which are virtual?
>
> What do you mean by virtual?

Virtual printer is not hardware printer :) CUPS-PDF for example.

> If you are looking to determine whether
> a particular printer is a class or a specific printer, you can look at
> the printer-type value returned in the options array for each
> destination returned by cupsGetDests().
>

Where the possible values of printer-type are documented?

> If you are trying to determine whether you'll be printing or saving as
> PDF, for example, then you'll need to know about the device URIs used
> by each of the third-party solutions - then you can just look at the
> device-uri for each printer and determine from there.
>
> That said, why do you need to know this information?  Why do you care?
>
> ___________________________________________________
> Michael Sweet, Senior Printing System Engineer
>

I'd like to show to user only hardware printers. All virtual printers like CUPS-PDF should be ignored in my program.

Thanks.




More information about the cups mailing list