multipage (2 pages to 1) print function not working

Bug #3667 reported by Frank Niedermann
128
Affects Status Importance Assigned to Milestone
Gnome Print
Expired
Medium
gnome-print (Ubuntu)
Fix Released
Medium
Unassigned
libgnomeprint (Ubuntu)
Invalid
Medium
Ubuntu Desktop Bugs

Bug Description

The function 'print 2 pages to 1' does not work.

Reproduce: Open gedit with a larger file (/var/log/dmesg in my example), select file - print, go on tab paper and select Layout: 2 pages to 1

Result: Separate pages (like default)

Expected Result: Two pages on one paper

I've tested it with gedit and evince and it happens with a HP LaserJet 5000N and the existing PDF printer.

There seem to be more people having this issue:
http://www.ubuntuforums.org/showthread.php?t=82592
http://www.ubuntuforums.org/showthread.php?t=66717
http://www.ubuntuforums.org/showthread.php?t=46557

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks for your bug. That's known upstream: http://bugzilla.gnome.org/show_bug.cgi?id=166564

Changed in gnome-print:
assignee: nobody → gnome
Revision history for this message
Christian Göbel (christiangoebel) wrote :

It doesn't seem that this has been fixed for Gnome 2.14:

The following workaround worked fine for me:
1. install psutils using apt-get
2. print your document into a file in.ps using a postscript printer
3. type: psnup -2 in.ps out.ps
4. print the out.ps file

But I guess this cumbersome for everyday usage.

Revision history for this message
Christian Göbel (christiangoebel) wrote :

For printing pdf files you might find the program pdfnup more straightforward.
You have to install the package pdfjam.
Note that pdfjam depends on latex so only consider this option if you have enough space on your hard-disk.

Unfortunately pdf-printing does not work by default:
https://launchpad.net/distros/ubuntu/+bug/33127

Changed in gnome-print:
assignee: gnome → desktop-bugs
status: Unconfirmed → Confirmed
Revision history for this message
Mark Howard (mh-tildemh) wrote :

The upstream report basically says that this does not work and will not be fixed since the next gtk release will replace libgnomeprint.

However, can't we at least disable the option for dapper, to avoid annoying users by offering a feature but not implementing it.
(an even better solution would be to review and apply the patch in the gnome report...)

Revision history for this message
David Prieto (frandavid100-gmail) wrote :

I think Dapper urgently needs printing to work properly if it wants to reach the desktop.

If upstream is not going to fix this problem, the patch should be applied and repacked for Ubuntu.

Revision history for this message
Felipe Alfaro Solana (felipe-alfaro) wrote :

I'm also experiencing problems with printing in GNOME. Basically, GNOME printing dialog disabled the paper tray dropdown listbox for my HP Laserjet 4050, but KDE and non-GNOME applications allow me to choose from four different paper trays.

Revision history for this message
Guillermo Gutiérrez (capitanterrex) wrote :

Attach http://bugzilla.gnome.org/attachment.cgi?id=46154 from http://bugzilla.gnome.org/show_bug.cgi?id=166564 works for me. It could be possible to fix in dapper?

Changed in gnome-print:
assignee: desktop-bugs → seb128
Revision history for this message
Sebastien Bacher (seb128) wrote :

Please don't assign team bugs to me when I've not said I'll work on the bug, would be nice to have it used upstream before considering that change for a dapper-updates upload

Changed in libgnomeprint:
assignee: seb128 → desktop-bugs
Changed in gnome-print:
status: Unconfirmed → Confirmed
Revision history for this message
Thomas Hotz (thotz-deactivatedaccount) wrote :

With the latest updates it seems to be fixed (at least for me). Now i can print 2 pages to 1.

Revision history for this message
Ante Karamatić (ivoks) wrote :

OK to close this bug?

Revision history for this message
Guillermo Gutiérrez (capitanterrex) wrote :

This is not solved yet on my box :\ (amd64) and HP PSC1510 via ipp. Also local generic postcript printer to a file didn't work (I get one page for each sheet).

$ LANG=en COLUMNS=150 dpkg -l *gnomeprint*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-===============================-===============================-==============================================================================
ii libgnomeprint2.2-0 2.12.1-3ubuntu2 The GNOME 2.2 print architecture - runtime files
ii libgnomeprint2.2-data 2.12.1-3ubuntu2 The GNOME 2.2 print architecture - data files
ii libgnomeprint2.2-dev 2.12.1-3ubuntu2 The GNOME 2.2 print architecture - development files
ii libgnomeprintui2.2-0 2.12.1-2ubuntu1 GNOME 2.2 print architecture User Interface - runtime files
ii libgnomeprintui2.2-common 2.12.1-2ubuntu1 GNOME 2.2 print architecture User Interface - common files
ii libgnomeprintui2.2-dev 2.12.1-2ubuntu1 GNOME 2.2 print architecture User Interface - devel files

Revision history for this message
Neilen Marais (neilenmarais) wrote :

Thomas: Latest dapper or edgy? Printing from evince to a .ps (can try on real printer at work tomorrow) still does not work. I do upgrade from dapper-updates, and my system is up to date.

Revision history for this message
Neilen Marais (neilenmarais) wrote :

Sorry for the multiple posts.

Thomas: More specifically, what versions of evince and libgnomeprint are you using?

Revision history for this message
Thomas Hotz (thotz-deactivatedaccount) wrote :

Ubuntu Dapper Drake with all updates.

thomas@ubuntu:~$ LANG=en COLUMNS=150 dpkg -l *gnomeprint*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-===============================-===============================-==============================================================================
ii libgnomeprint2.2-0 2.12.1-3ubuntu2 The GNOME 2.2 print architecture - runtime files
ii libgnomeprint2.2-data 2.12.1-3ubuntu2 The GNOME 2.2 print architecture - data files
ii libgnomeprintui2.2-0 2.12.1-2ubuntu1 GNOME 2.2 print architecture User Interface - runtime files
ii libgnomeprintui2.2-common 2.12.1-2ubuntu1 GNOME 2.2 print architecture User Interface - common files

I was able to print from evince 2 pages on 1.

Revision history for this message
Neilen Marais (neilenmarais) wrote :

Sorry for the multiple posts.

Thomas: More specifically, what versions of evince and libgnomeprint are you using?

Revision history for this message
Neilen Marais (neilenmarais) wrote :

I have:

$ LANG=en COLUMNS=150 dpkg -l *gnomeprint* | grep ^ii
ii libgnomeprint2.2-0 2.12.1-3ubuntu2 The GNOME 2.2 print architecture - runtime files
ii libgnomeprint2.2-data 2.12.1-3ubuntu2 The GNOME 2.2 print architecture - data files
ii libgnomeprint2.2-dev 2.12.1-3ubuntu2 The GNOME 2.2 print architecture - development files
ii libgnomeprintui2.2-0 2.12.1-2ubuntu1 GNOME 2.2 print architecture User Interface - runtime files
ii libgnomeprintui2.2-common 2.12.1-2ubuntu1 GNOME 2.2 print architecture User Interface - common files
ii libgnomeprintui2.2-dev 2.12.1-2ubuntu1 GNOME 2.2 print architecture User Interface - devel files

and
ii evince 0.5.2-0ubuntu3 Document (postscript, pdf) viewer

The print libraries seem to be the same as Thomas's.

I tried printing to file with 2 to one and 4 to one settings enabled, with both evince and evolution, using the generic PS driver. The output is still only one page per page. I'll try with a real printer tomorrow, but I doubt that will change anything...

Revision history for this message
Neilen Marais (neilenmarais) wrote :

Oi, why are my comments being repeated? I don't think *I*'m doing anything wrong? Anyway, sorry for the annoyance.

Revision history for this message
Neilen Marais (neilenmarais) wrote :

OK, confirm that 2 to 1 printing works on a real printer (HP ColorLaserJet 3800 in this case), but does not work when printing to file.

Should we expect 2 to 1 printing to work when printing to file? I've certainly wanted to do it before...

Revision history for this message
Guillermo Gutiérrez (capitanterrex) wrote :

> Should we expect 2 to 1 printing to work when printing to file?

Yes, we should. At least, printing to a shared printer via ipp

Revision history for this message
Sebastien CELLES (s-cls) wrote :

Hello,

Multipage printing is very usefull I hope you will add it in Dapper since it has a Long Time Support !!!

I will add that other things that psnup (and other psutils commands lines http://www.tardis.ed.ac.uk/~ajcd/psutils/) provide should also be add in gnome-print :
- booklet printing (psbook ...)
- mirror printing (convert -flop input.ps output.ps)
- multipage printing (psnup -n 2 ... or more !)

The user interface should allow to act as a tube (pipe |)... a sort of filter...

It should be possible to have more than one action
for example
- I should be able to print with a mirror effect with 2 pages to 1
- I should be able to print with a mirror effect a booklet
- I should be able to call my own bash script
    tube script like ... | psbook | ...
   or script with parameters such as $i for input file and $o for output file (that's just an example)
...

therefore I think the user interface shouldn't have buttons to tick but should have 2 parts
on the left part the differents effects (multipage, mirror, ...) are shown
the right part will be the "printing tube" that will show what effects are chosen and in what order (and whis what parameters)

The user who only want a multipage print will drag and drop multipage from the right to the left.
On the right part a right click on the multipage will allow him to selct how many pages he wants (it is a parameter of the multipage effect)

The paramaters of a selected effect on the right part could appear by a right click or could be on the bottom of the window (maybe it's easier for users on the bottom...)

I hope you like the idea of this interface...
I really think that it will allow users to do everything they want !!!
I dont't think it 's a geek interface ;-)

Regards

Revision history for this message
Guillermo Gutiérrez (capitanterrex) wrote :

If I can request for it, also I would like to be able to print only even or odd pages, ones in inverted sort. (To help with double-side printing, like kpdf)
thx

Revision history for this message
Michał Sawicz (saviq) wrote :

Well? Does anybody know a way to fix this?

Revision history for this message
towsonu2003 (towsonu2003) wrote :

wow, a really old bug...

Changed in gnome-print:
status: Unconfirmed → Confirmed
Revision history for this message
Adriano Varoli Piazza (adrianovaroli) wrote :

It's worse in Edgy: it used to "auto recognise" if the page should be laid out horizontally or vertically (I don't know if the behaviour depends on variables/consts set in the files, all I know is that acroread works), and there's no use selecting multiple (virtual) pages per page, it spews out a single page, incomplete if the file called for landscape orientation instead of vertical.

Revision history for this message
Pascal De Vuyst (pascal-devuyst) wrote :

@Frank Niedermann

In Dapper the "n pages to 1" issue should be fixed with libgnomeprint 2.12.1-3ubuntu2 from dapper-updates. I'm able to print n-up without problems on my Dapper machine.
Do you still have this problem?
If so please attach the output of the printingbuginfo script for some basic information about your printing setup, the printingbuginfo script can be found here: https://wiki.ubuntu.com/PrintingBugInfoScript.

This fix is also present in Edgy for applications that use libgnomeprint.

Revision history for this message
Pascal De Vuyst (pascal-devuyst) wrote :

@Adriano
This bug is about applications that use libgnomeprint for printing (e.g. gedit).
Evince in Edgy uses the new GtkPrintDialog, n-up issue for Edgy has already been reported as bug #67164.

Changed in libgnomeprint:
status: Confirmed → Needs Info
Revision history for this message
towsonu2003 (towsonu2003) wrote :

I'm closing the libgnomeprint portion (the others are still open). please reopen if you can provide the info to this post https://bugs.launchpad.net/distros/ubuntu/+source/libgnomeprint/+bug/3667/comments/26

Changed in libgnomeprint:
status: Needs Info → Rejected
Revision history for this message
Jonathan Austin (mailforwho) wrote :
Revision history for this message
Daniel Betschart (dbet1) wrote :

In Dapper the 2 of 1 bug was fixed with an update from dapper-updates. But in Feisty it is here again, eg. with GEdit, which still uses the old libgnomeprint library.
If I print a file with the option Handout 2 pages on 1 under Layout, the preview shows a normal output, that contains 1 page on 1. Printing with this setting on a HP Laserjet 5 prints also 1 page on 1. The options 1 page distributed to 2 and booklet seems to does nothing.

As I can see, the layout dialog has changed between dapper and feisty. Perhaps there is an error interpreting the settings from the newer dialog.

Revision history for this message
markusd112 (markusd112) wrote :

I have the same problem with ubuntu 8.04: I cannot print 2 pages on 1. It prints still 1 complete page. Is there any solution? It would be nice too, to enable this feature in the gnome printing dialog. This isn't possible in the moment, so I have to enter the printer setup and change the default settings. I know this feature from Windows: there you can enable it via the printing dialog in each application as a per job setting.

Revision history for this message
Neilen Marais (neilenmarais) wrote :

Markus: Strange, seems to WorkForMe with hardy printing from evince.

Revision history for this message
Michał Sawicz (saviq) wrote :

Well this seems to work for me in today's openSUSE 11.0, although the 'only odd/even sheets' is actually 'only odd/even pages', thus - unusable.

I haven't yet met no app (nor win, nor lin) that would make two sided printing of 2 to 1 the right way ;)

Changed in gnome-print:
status: Confirmed → Triaged
Changed in gnome-print:
status: Confirmed → Invalid
Revision history for this message
Guillermo Gutiérrez (capitanterrex) wrote :

This is working for me now, I think this bug could be closed.

Revision history for this message
Michał Sawicz (saviq) wrote :

Yes, me too, a quick look at it proved that printing only odd / even sheets with n-to-1 pages does work.

Changed in gnome-print (Ubuntu):
status: Triaged → Fix Released
Changed in gnome-print:
importance: Unknown → Medium
status: Invalid → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.