Printing duplex in reverse order does not work from many applications

Bug #370591 reported by Alexander Kallenbach
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenOffice
Invalid
Undecided
Unassigned
evince (Ubuntu)
Expired
Medium
Unassigned
gtk+2.0 (Ubuntu)
Incomplete
Medium
Unassigned
openoffice.org (Ubuntu)
Won't Fix
Low
Unassigned

Bug Description

Binary package hint: cups

I'm using a HP deskjet 5550 printer. When using the duplex mode and printing backwards I've always got an empty page after the first page when printing documents with an impair number of pages (3, 5 and so on) . It doesn't matter from which application I'm printing.

ProblemType: Bug
Architecture: i386
CupsErrorLog:

DistroRelease: Ubuntu 9.04
Lpstat: Gerät für deskjet-5550: hp:/usb/deskjet_5550?serial=MY31L1N36X2L
MachineType: MEDIONPC
NonfreeKernelModules: nvidia
Package: cups 1.3.9-17ubuntu2
Papersize: a4
PpdFiles: deskjet-5550: HP Deskjet 5550 Foomatic/hpijs, hpijs 2.8.7
ProcCmdLine: root=UUID=3ca68d60-4744-4061-aa7b-a9c04ad987f8 ro quiet splash
ProcEnviron:
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.28-11.42-generic
SourcePackage: cups

Revision history for this message
Alexander Kallenbach (kallenbachalex) wrote :
description: updated
description: updated
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

I assume you get double-sided sheets. The expected order of printing for a 3-page document is on the first sheet at first a blank page and on the back side page 3. This sheet gets laid down with page 3 to the top. Then on the second sheet psge 2 is printed at first, the sheet is then turned over and page 1 printed on it. The sheet gets then laid down with page 1 to the top. So the pages are perfectly laid down in the correct order and one can immediately staple them. For me this works with a fully up-to-date Jaunty on an HP inkjet with duplex unit (HP PhotoSmart C8100) and the PPD files of either HPLIP 2.8.7 (from Intrepid) or 3.9.2 (from Jaunty).

Please do at first a complete system update, eithwr by clicking the appropriate tray icon and following the instructions of the update manager or by entering the following commands in a terminal window:

sudo apt-get update
sudo apt-get upgrade

If your printout still does not come out correctly, please attach your input file and tell how you exactly have printed it (application, option settings, ...). Create also an error_log output as described in the "CUPS error_log" section of

https://wiki.ubuntu.com/DebuggingPrintingProblems

Changed in cups (Ubuntu):
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
Alexander Kallenbach (kallenbachalex) wrote :

Yes I do get double-sided sheets. But the printer prints first the third page, then on the other side the second page. The sheet gets laid down with side 2 on the top. Then page 1 gets printed and the sheet get laid down with an empty page on the top.

I attached a document (in fact it happens with every document) from which I wanted to print the first 3 pages.
As well I attached the error_log.

Revision history for this message
Alexander Kallenbach (kallenbachalex) wrote :

I forgot to mention that I used documentviewer to print. But I can confirm the bug as well for OpenOffice and other applications.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Can you also add your PPD file (/etc/cups/ppd/deskjet-5550.ppd)?

Revision history for this message
Alexander Kallenbach (kallenbachalex) wrote :
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

I could reproduce the bug now.

It is not a CUPS problem. If you send a multiple-page PostScript or PDF file directly to CUPS (with the "lp" or "lpr" command) the printout is always correct.

The problem is in Evince or even in the GTK printing framework. If the user checks "Reverse" on the first tab of the printing dialog, the PostScript data sent to CUPS are all pages in the reverse order. This means the 3rd page is sent at first, then the 2nd, and in the end the first. So CUPS prints the first two pages it gets onto the first sheet, page 3 in fron and page 2 on the back. Then it prints page 1 onto the front page of the second sheet and leaves the back side blank.

So Evince/GTK should as the best solution simple always send the pages in the original order and add an IPP attribute for the reverse printing. So CUPS can arrange it correctly with its pdftopdf or pstops filter.

Alternatively, Evince/GTK can add a blank page to the end of a job with an odd number of pages and duplex set, and reverse the page order only after that, but note that it gets complicated if N-up comes to the place. So my recommendation is to leave all page management to CUPS and so simply send the original document with all page management option settings (options on the first two tabs of the dialog) sent as IPP attributes to CUPS.

If the same problem occurs for OpenOffice.org it should be fixed the same way.

affects: cups (Ubuntu) → evince (Ubuntu)
Changed in evince (Ubuntu):
status: Incomplete → Triaged
Changed in gtk+2.0 (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Changed in openoffice.org (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
summary: - Cups duplex mode doesn't work properly
+ Printing duplex in reverse order does not work from many applications
Revision history for this message
Evan Broder (broder) wrote :

I've seen a similar bug on Jaunty (in my case, printing multiple copies of a document with duplexing enabled would do various incorrect things), but I've been unable to reproduce it or this bug on Karmic.

Alex - are you still having this issue on Karmic?

Chris Cheney (ccheney)
tags: added: jaunty
Evan Broder (broder)
Changed in evince (Ubuntu):
status: Triaged → Incomplete
Changed in gtk+2.0 (Ubuntu):
status: Triaged → Incomplete
Revision history for this message
Alexander Kallenbach (kallenbachalex) wrote :

I'm sorry but I can't provide the informations asked for. I'm no longer using the HP deskjet 5550. On my HP Officejet Pro 8500 under Maverick Meerkat I'm not having this issue.

Revision history for this message
Pedro Villavicencio (pedro) wrote :

We're closing this bug since it is has been some time with no response from the original reporter. However, if the issue still exists please feel free to reopen with the requested information. Also, if you could, please test against the latest development version of Ubuntu, since this confirms the bug is one we may be able to pass upstream for help.

Changed in evince (Ubuntu):
status: Incomplete → Expired
Revision history for this message
penalvch (penalvch) wrote :

Alexander Kallenbach, marking Incomplete until test with HP deskjet 5550 using non-EoL Ubuntu is done.

Changed in openoffice.org (Ubuntu):
importance: Medium → Low
status: Triaged → Incomplete
Changed in openoffice.org (Ubuntu):
status: Incomplete → Won't Fix
Revision history for this message
Björn Michaelsen (bjoern-michaelsen) wrote : migrating packaging from OpenOffice.org to Libreoffice

[This is an automated message.]
There are no new official OpenOffice.org releases in Ubuntu packaging anymore => Won't Fix

If the problem persists, please mark this bug as "also affects project Libreoffice" or "also affects distribution Libreoffice (Ubuntu)" if that has not happened already.

Please leave references to upstream OpenOffice.org bugs in place to allow cross pollination.

Revision history for this message
penalvch (penalvch) wrote :

No reference URL.

Changed in openoffice:
status: New → Invalid
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.