Re: [cups-devel] Getting more advanced options for printers

Helge Blischke <helgeblischke-S0/[email protected]> Fri, 28 Jul 2017 13:23:17 +0200
Newsgroups gmane.comp.printing.cups.devel
Message-ID <[email protected]>
> Am 28.07.2017 um 12:56 schrieb Nilanjana Lodh <[email protected]>:
> 
> Hi,
> I'm trying to procure all available options for a CUPS Destination, but I
> haven't been able to find a suitable method which lists every option
> available in the ppd.
> I have tried the following approaches:
> 1.  tried to retrieve supported "*job-creation-atttributes*" via an IPP
> request.
> This returns most basic options such as media, orientation, number-up etc,
> However, this doesn't return the more advanced options such as half-tone
> algorithm, etc , even though they are defined in the ppd
> 2. tried to retrieve "*printer-more-info" , *however, this doesn't help
> much.
> 
> Is there a way I can get all the advanced options (including those defined
> in the ppd of the particular printer), without dealing PPDs(since the ppd
> api is deprecated)?
> I couldn't find a relevant function in the CUPS API too.
> 
> I'd be obliged if someone could offer some advice.
> 
> NILANJANA LODH
> CS Undergrad
> @ IIEST, Shibpur


Nilaniana,

the cupstestppd utility will do that (see man cupstetppd for the details), though
the list of the available options is not really intuitive for understanding.

Helge