From: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
To: Till Kamppeter <till.kamppeter@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 20:07:23 -0300 [thread overview]
Message-ID: <4812642B.5040406@gmail.com> (raw)
In-Reply-To: <4811C5C7.2070803@gmail.com>
Till Kamppeter escreveu:
> Marcelo Ricardo Leitner wrote:
>> 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".
Ok, I've no idea how each app converts its data to the print job, but is
that really possible? I mean, rendering page 3 on a browser wouldn't
require pages 1 and 2 be rendered first? Again, no idea here, but the
idea sounds interesting if possible.
>> 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.
Ok, you understood what I meant. So it should be possible for
applications be informed about other attributes changes, not only its ones.
>> 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.
Yes, it would use the structure just discussed right above for that :)
>> 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.
In this case, storing the configs along with the dialog would be enough,
as it would be cross-referenced against printer queue and application
being used.
You are right, perhaps the application would want to store it matching
against the document being printed. But that could be handled by the
dialog too, it would just be another field or even a matter of defining
a format for that domain name I talked about, "app[/doc hash]"..
Thanks,
Marcelo.
next prev parent reply other threads:[~2008-04-25 23:07 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
2008-04-25 23:07 ` Marcelo Ricardo Leitner [this message]
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=4812642B.5040406@gmail.com \
--to=marcelo.leitner@gmail.com \
--cc=jriddell@ubuntu.com \
--cc=peter@mmiworks.net \
--cc=printing-architecture@lists.linux-foundation.org \
--cc=till.kamppeter@gmail.com \
/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.