All of lore.kernel.org
 help / color / mirror / Atom feed
From: Till Kamppeter <till.kamppeter@gmail.com>
To: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Cc: printing-architecture@lists.linux-foundation.org,
	Peter Sikking <peter@mmiworks.net>,
	Jonathan Riddell <jriddell@ubuntu.com>
Subject: Re: [Printing-architecture] Coding the Common Printing Dialog and its interface
Date: Fri, 25 Apr 2008 13:51:35 +0200	[thread overview]
Message-ID: <4811C5C7.2070803@gmail.com> (raw)
In-Reply-To: <481131B6.5050809@gmail.com>

Marcelo Ricardo Leitner wrote:
> Hi there Till,
> 
> It's very nice to see kinda movement on this subject :)
> 
> There are some questions that didn't get clear to me:
> 
> 1) You said application will send the pdf document to the dialog via
> sockets. Having that said, is it really "sockets" or "pipes"? Note that
> sockets normally references connections & stuff, possibility to be on
> different machine, ..  while pipes doesn't.
>

Yes, can be also a pipe.

> 2) After the document is transfered to the dialog, where will it be
> stored? We can do it in memory or on temporary files. In memory sounds
> killer for medium-large documents or small boxes, while storing in
> temporary files kinda makes the previous step unnecessary.
> 

That's true. In the data set sent by DBUS the temporary file name can be 
given and then the dialog simply accesses the fui

> Performance may strike here, considering preview updates which would
> require the entire document to be re-transferred.
> 

Before "Print" in the dialog is clicked one should perhaps only generate 
PDF from the one page currently visible in the preview and let the 
dialog request the other pages from the app when the user is navigating 
in the preview, and naturally when he clicks "Print".

> 3) You said printer-specific options aren't going to be reported back
> immediately to the application, but after the job is printed. How are we
> going to know which one if printer-specific and which one is
> application-specific?
> 

Printer-specific options come from the PPD (the dialog polls the PPD 
from CUPS), application-specific options are submitted by the 
application along with the job, and CUPS options the dialog knows 
already. So it is no problem for the dialog to distinguish the origins 
of the options.

> Because there are some options that raise doubts, like duplex/book
> printings on enhanced printers. For example, consider you are printing a
> financial report from kmymoney. You don't have access to margin setups,
> while the application could handle them a bit better for the duplex/book
> printing. (due to the left/right margings becoming different)
> 

If a printer-based duplex/book functionality is used, the margins are 
usually not changed, or the printer chnages them slightly when shrinking 
the pages to fit two on one sheet. When activating book printing or N-Up 
you will not need to request a changed document from the application.

In certain apps it makes sense to report some standard options, like 
Duplex, so that the app can switch to assymetric margins. Here an app 
could perhaps submit a list of options for which the dialog should send 
back the settings on each change.

> Still, application could change something at the document if you decide
> to print in B/W instead of colors, like for example making all text
> plain black (so you won't get unreadable grays).
> 

In this case the app would tell that it would re-generate the PDF on the 
ColorMode option.

> 4) You said the application would be storing used values for future
> re-usage. Is that the optimal? Considering every app would have to do
> it, maybe it would be interesting to have the dialog storing it. We
> could spawn the dialog informing a domain and when the dialog boots up,
> it would fake events while restoring our saved setup, thus informing the
> app about it transparently.
> 

Imaging you have a photo app from which you always print in color on an 
inkjet and a word processor from which you always print on a bw laser. 
Also option settings can depend very much on the document. So storing 
printer settings along with a document is not such a bad idea.

> 5) "If ASCII text pieces are too big, exchange them gzipped"
> Considering we may be transferring the whole document via socket/pipes,
> this idea may not be really useful or am I missing something here?

Option definitions and settings are transferred as plain text. If this 
data stream gets too long (should not be the case) one could transfer it 
gzipped.

    Till

  reply	other threads:[~2008-04-25 11:51 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-24 21:54 [Printing-architecture] Coding the Common Printing Dialog and its interface Till Kamppeter
2008-04-25  1:19 ` Marcelo Ricardo Leitner
2008-04-25 11:51   ` Till Kamppeter [this message]
2008-04-25 23:07     ` Marcelo Ricardo Leitner
2008-04-27 11:05       ` Till Kamppeter
2008-05-01 15:46         ` Lars Uebernickel
2008-05-01 17:05           ` Till Kamppeter
2008-05-01 17:51             ` Lars Uebernickel
2008-05-01 17:59               ` Till Kamppeter
2008-04-30 18:33 ` Till Kamppeter
2008-04-30 20:12   ` Alex Wauck
2008-04-30 20:40     ` Till Kamppeter
2008-05-01 15:44     ` Alex Wauck
2008-05-01 16:58       ` Till Kamppeter
2008-05-01 23:48         ` Olaf Meeuwissen
2008-05-02  3:17           ` Alex Wauck
2008-05-02  5:59             ` Olaf Meeuwissen
2008-05-04 11:06               ` peter sikking
2008-05-05  6:17         ` Josef Spillner
2008-05-01 16:33 ` Lars Uebernickel
2008-05-01 17:57   ` 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=4811C5C7.2070803@gmail.com \
    --to=till.kamppeter@gmail.com \
    --cc=jriddell@ubuntu.com \
    --cc=marcelo.leitner@gmail.com \
    --cc=peter@mmiworks.net \
    --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.