All of lore.kernel.org
 help / color / mirror / Atom feed
From: Till Kamppeter <till.kamppeter@gmail.com>
To: Michael Sweet <msweet@apple.com>
Cc: "printing-architecture@lists.linux-foundation.org"
	<printing-architecture@lists.linux-foundation.org>,
	John Layt <john@layt.net>, Marek Kasik <mkasik@redhat.com>
Subject: Re: [Printing-architecture] Concept for PPD-less CUPS-spooled printing on Bonjour-discovered network printers
Date: Tue, 12 Nov 2013 23:23:09 +0100	[thread overview]
Message-ID: <5282AA4D.9010201@gmail.com> (raw)
In-Reply-To: <B68BB93E-6180-44CE-BEDA-3A499C72D823@apple.com>

On 11/01/2013 03:48 PM, Michael Sweet wrote:
> Till,
> 
> On Oct 30, 2013, at 6:18 AM, Till Kamppeter <till.kamppeter@gmail.com> wrote:
>> ...
>> What is required from a GUI is that as soon as the user selects a
>> printer for printing (or with the default printer when just opening the
>> dialog) is that if the printer is such PPD-less queue, to poll the
>> printer via IPP (code example below) to get its capabilities, show the
>> user-settable options on the dialog's option panel (like PPD options)
>> and send the job accompanied with the option settings, including the
>> ones which the user has not changed and the ones which have only one
>> choice (and so are not changeable). The job itself should be in PDF
>> format and (if the printer supplies appropriate info) in a page size
>> supported by the printer.
> 
> Till, I am curious why you are not using the CUPS APIs from 1.6 and later for this?
> 

AFAIR The cupsEnumDests() function is not passing on all needed
information, especially not the TXT record which contains important info
like the printer's PDLs. It also lists only local and remote CUPS queues
and not my IPP network printers (is it restricted to input formats, like
PDF? Or IPP Everywhere/PWG Raster?). For only doing the original task of
cups-browsed, creating local queues pointing to remote CUPS queues to be
able to easily print on these remote printers from the current
applications cupsEnumDests() would even work.

Another question is whether cupsEnumDests() can run in parallel with
other, independent services, in my case Tim Waugh's backward
compatibility CUPS browsing/broadcasting.

> Also, I have my concerns of this approach - with cupsd not knowing anything about the printer, and with there being no way for a non-aware app to know what the printer's capabilities are, I foresee a lot of interoperability issues.

The problem of this kind of queues is really that if an application is
not aware of them, it prints (if the app sends PDF it actually prints,
as the correct filter chain is called) on them but with unsatisfying
results do to not knowing enough of the printer.

They work only to their full extent if the app is aware of them and
polls the capabilities record of the printer via IPP. And this record
cannot be polled by cups-browsed already as then entering the network
with a mobile device can wake up all printers from power saving mode,
some models even getting noisy then.

Any suggestion for a better implementation of this scenario is welcome.

   Till


  parent reply	other threads:[~2013-11-12 22:23 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-13 23:52 [Printing-architecture] Concept for PPD-less CUPS-spooled printing on Bonjour-discovered network printers Till Kamppeter
2013-06-14  0:05 ` Till Kamppeter
2013-06-16 21:52 ` James Cloos
2013-06-16 22:18   ` Till Kamppeter
2013-06-18  0:42     ` James Cloos
2013-06-18 12:15       ` Michael Sweet
2013-06-19 21:32         ` James Cloos
2013-07-25 14:46 ` Till Kamppeter
2013-07-29 14:25   ` Michael Sweet
2013-10-30 10:18 ` Till Kamppeter
2013-11-01 14:48   ` Michael Sweet
2013-11-01 15:06     ` Till Kamppeter
2013-11-01 15:32       ` Michael Sweet
2013-11-12 22:23     ` Till Kamppeter [this message]
2013-11-13 10:38       ` Tim Waugh
2013-11-13 14:52         ` Michael Sweet
2013-11-13 15:09       ` Michael Sweet
     [not found]   ` <5273A1A5.6000809@redhat.com>
     [not found]     ` <52864861.3030309@redhat.com>
2013-11-15 16:56       ` Till Kamppeter
     [not found]       ` <528CDCE6.2070603@redhat.com>
2013-11-20 16:09         ` Till Kamppeter
2013-11-20 17:28           ` Michael Sweet
2013-11-20 17:26         ` Michael Sweet
2014-01-07 12:06   ` Till Kamppeter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5282AA4D.9010201@gmail.com \
    --to=till.kamppeter@gmail.com \
    --cc=john@layt.net \
    --cc=mkasik@redhat.com \
    --cc=msweet@apple.com \
    --cc=printing-architecture@lists.linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.