After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 166564 - printing doesn't respect the layout setting in gnomeprint
printing doesn't respect the layout setting in gnomeprint
Status: RESOLVED OBSOLETE
Product: gnome-print
Classification: Deprecated
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Jody Goldberg
Jody Goldberg
: 172928 305674 311347 315526 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-02-07 14:49 UTC by Mattias Eriksson
Modified: 2009-04-13 15:13 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
libgnomeprint patch to support multipage print with CUPS (1.92 KB, patch)
2005-02-28 20:15 UTC, Jürg Billeter
none Details | Review
libgnomeprint patch for multipage, number of copies and duplex/tumple support (2.63 KB, patch)
2005-05-07 23:17 UTC, Jürg Billeter
none Details | Review
typo fix (2.63 KB, patch)
2005-05-07 23:50 UTC, Jürg Billeter
needs-work Details | Review
alternative more generic libgnomeprint patch (4.90 KB, patch)
2005-05-08 22:39 UTC, Jürg Billeter
rejected Details | Review

Description Mattias Eriksson 2005-02-07 14:49:44 UTC
When you print a pdf document with evince and select layout "4 pages on 1" you
still get normal "1 page on 1" output.

To reproduce: open a dpf document (haven't tested to see if this is a general
problem), print. In the print dialog change the layout setting. 

Note: This problem also exists in gpdf (#125897, #142370).
Comment 1 Jürg Billeter 2005-02-27 19:19:39 UTC
I've written a patch for libgnomeprint to fix this - at least when using the
CUPS backend.

http://mail.gnome.org/archives/gnome-print-list/2005-February/msg00005.html
Comment 2 Bryan W Clark 2005-02-28 19:51:20 UTC
Could you attach that patch to this bug, just to keep everything in the same
place.  Thanks.
Comment 3 Jürg Billeter 2005-02-28 20:15:06 UTC
Created attachment 38068 [details] [review]
libgnomeprint patch to support multipage print with CUPS
Comment 4 Bryan W Clark 2005-03-07 18:18:38 UTC
Adding the PATCH keyword, all the work in Evince is going into the new threading
system right now so I suspect printing patches will sit a bit longer :-(  Sorry!
Comment 5 Marco Pesenti Gritti 2005-03-08 00:16:54 UTC
Martin, if you could have a look to this, it would be great.
Comment 6 Jonathan Blandford 2005-04-02 23:51:24 UTC
This is a libgnomeprint bug, right?  Reassigning.
Comment 7 Mattias Eriksson 2005-04-03 09:29:21 UTC
I'm not sure it is libgnomeprints fault. When I first reported the bug (with
gpdf) I also assumed it was libgnomeprint, but then it was reassigned to gpdf
since it worked for other programs like gedit. I was told it was caused of the
fact that gpdf had a special handling of gnomeprint, like drawing direct on the
prinitng canvas, that was the cause of it. I might understood things wrong, so
don't take my word for it.
Comment 8 Jonathan Blandford 2005-04-15 21:24:57 UTC
reassigning to evince.
Comment 9 Jürg Billeter 2005-05-07 23:17:15 UTC
Created attachment 46152 [details] [review]
libgnomeprint patch for multipage, number of copies and duplex/tumple support

I've updated my patch against libgnomeprint. Now it should correctly forward
multipage, number of copies, and duplex / tumble to cups. I still think it's a
libgnomeprint issue as all programs using input_file are affected. Bug 172928 
is basically about the same issue.
Comment 10 Jürg Billeter 2005-05-07 23:50:40 UTC
Created attachment 46154 [details] [review]
typo fix
Comment 11 Jürg Billeter 2005-05-08 22:39:09 UTC
Created attachment 46202 [details] [review]
alternative more generic libgnomeprint patch

As there were still some problems left even with my patch applied, I've written
an alternative, more generic version. It's now possible to print to generic
postscript and to create a pdf document while retaining the paper and layout
settings (e.g. create a pdf/ps from an existing pdf/ps with 2 pages per sheet)
and lpr and papi transport should work, too.

The disadvantage is that it only works as desired with pstops (cups filter),
ps2pdf (ghostscript), and a generic postscript ppd (foomatic). A generic ppd
may be added to libgnomeprint itself, the other two dependencies are probably a
non-issue for most GNU/Linux distributions but maybe problematic for others, I
don't know.
Comment 12 Marco Pesenti Gritti 2005-05-09 10:03:14 UTC
Reassigning to gnome-print since this is a gnome-print patch.
Comment 13 Marco Pesenti Gritti 2005-05-09 10:25:59 UTC
*** Bug 172928 has been marked as a duplicate of this bug. ***
Comment 14 Jody Goldberg 2005-05-11 18:27:32 UTC
Comment on attachment 46202 [details] [review]
alternative more generic libgnomeprint patch

This is entirely too generic.  I don't like the notion of using CUPS outside of
the cups module.
Comment 15 Jody Goldberg 2005-05-11 18:31:38 UTC
Comment on attachment 46154 [details] [review]
typo fix

Reasonable but the n-up support looks fishy.  Talk to lutz.
Comment 16 Jody Goldberg 2005-05-11 18:31:50 UTC
Comment on attachment 46154 [details] [review]
typo fix

Reasonable but the n-up support looks fishy.  Talk to lutz he knows a fair
amount about this.
Comment 17 Jos Dehaes 2005-05-14 15:38:31 UTC
N-up printing works with this patch, but the margins are all wrong then (when
printing on A4 paper). Printing 1-up uses correct margins for A4. When I just
print with lpr (I have nup=2 in .lpoptions) it prints correctly. Maybe the paper
settings are not correctly forwarded?
Comment 18 Lutz Mueller 2005-05-16 21:27:42 UTC
Just for the record: gnome_print_job_set_file passes data directly to the
printer (transport), leaving out the standard API (lineto, moveto), the creation
of meta data and the conversion of this meta data into other formats like PDF/PS
(driver). Both ggv and gpdf use this function.

The UI hides all that complexity. The user does not see that:
- "Range" is related to meta data
- "Copies" is related to transports/meta data (if not supp. by transp.)
- "Duplex" is related to the driver
- "Paper size" is related to the driver
- "Layout" (n-up) is related to meta data

In my opinion, we should, in a first step, fix the UI to make all options
insensitive that cannot be honoured when using gnome_print_job_set_file (i.e.
everything related to meta data and drivers). In a second step, we should add
the n-up support just like the support for "Copies": Using
GNOME_PRINT_KEY_[NUP,COLLATED_COPIES]_IN_HW.
Comment 19 Martin Kretzschmar 2005-06-02 13:19:12 UTC
*** Bug 305674 has been marked as a duplicate of this bug. ***
Comment 20 Jürg Billeter 2005-07-22 21:13:22 UTC
I understand that it's somewhat more complicated to fix this in a clean way but
the problem is there now for end users of gpdf, evince, and now epiphany, too.
AFAIK the long-term solution is cairo-based gtk print anyway, so we shouldn't
wait until someone has time to really cleanup everything around
gnome_print_job_set_file - which libgnomeprint wasn't designed for originally -
but commit something like in #10 now, i.e. before code freeze of 2.11. It works
AFAICT and there shouldn't be any situations it would harm, so please reconsider
applying the patch.
Comment 21 Christian Persch 2005-07-26 11:38:25 UTC
*** Bug 311347 has been marked as a duplicate of this bug. ***
Comment 22 Frank Niedermann 2005-11-04 09:01:21 UTC
Are there plans to fix this issue for Gnome 2.14?
Comment 23 Frank Niedermann 2006-03-04 11:28:44 UTC
some news on this bug?
Comment 24 Jody Goldberg 2006-03-07 16:16:41 UTC
libgnomeprint is basicly unmaintained and this patch has missed another release cycle.
Comment 25 Frank Niedermann 2006-03-07 19:39:21 UTC
hm curious that printing in gnome is unmaintained.

are the enterprise linux distributors fixing it theirselfes or has nobody yet noticed this issue? ;)
Comment 26 Daniel Holbach 2006-03-21 11:18:38 UTC
Mentioned in https://launchpad.net/products/gnome-print/+bug/3667 as well.
Comment 27 Pascal Terjan 2006-11-14 09:28:35 UTC
*** Bug 315526 has been marked as a duplicate of this bug. ***
Comment 28 Kjartan Maraas 2009-04-12 16:51:43 UTC
If this is still an issue it should be reported against gtk+ printing.
Comment 29 Jürg Billeter 2009-04-13 13:00:13 UTC
As far as I know, this works fine with GTK+ printing now.
Comment 30 Mattias Eriksson 2009-04-13 15:13:22 UTC
You are right, this is working now... I'm just bad at following up my bugs.