How can I query the printer properties
Anonymous
anonymous at easysw.com
Wed Apr 13 03:54:36 PDT 2005
Hi,
thank you for your prompt reply!
> Hi,
>
> On Wed, Apr 13, 2005 at 04:20:45AM -0400, d.obermann at callassoftware.com wrote:
> > how can I query the properties of the default printer.
> > What I want is to find out the default page size of the
> > default printer.
>
> For the printer itself, maybe npadmin can be of some use to you.
Now I compiled and tried it out, but I did not get any info of my printer with npadmin
>
> See : http://sourceforge.net/projects/lpr/
>
> This may help you know which values the printer will use by default,
> and/or which values are supported
>
> That being said, the default page size used by your applications
> is probably defined in the PPD.
But I do not get a ppd with the cups-API for my default printer, because it seams to be a raw pipe (ps printer).
So I have to comunicate directly with the printer?
(in this paper there is something with "media-default"
http://www.ietf.org/rfc/rfc3380.txt)
So probably I have to get it somehow with
requesting IPP_GET_PRINTER_ATTRIBUTES
but I did not have any success with it.
bye David
>
> bye
>
> Jerome Alet
>
More information about the cups
mailing list