Impossible to print in reverse order

Bug #299707 reported by Nick B.
6
Affects Status Importance Assigned to Milestone
cups (Ubuntu)
Fix Released
Undecided
Till Kamppeter
Intrepid
Fix Released
Undecided
Martin Pitt
Jaunty
Fix Released
Undecided
Till Kamppeter

Bug Description

Binary package hint: cups

On Intrepid there seems to be no way to print in reverse order. All of the settings for this option seem to be ignored.
I've tried setting the Output Order in the Hp-Toolbox to Reversed with no effect.
I've tried the command "lpadmin -p Photosmart_C7200 -o outputorder-default=reverse" with no effect
And I've tried manually adding "*DefaultOutputOrder: "reverse"" to the ppd file under /etc/cups/ppd/ with no effect.

Steps to reproduce:
1. Use the command "lpadmin -p printer_name -o outputorder-default=reverse" where printer_name is the name of the printer
2. Find a multi-page document, .odt, .pdf, .txt, anything printable.
3. Print it.

Expected result:
The last page will be printed first.

Actual result:
The first page is still printed first.

apt-cache policy cups
cups:
  Installed: 1.3.9-2ubuntu1
  Candidate: 1.3.9-2ubuntu1
  Version table:
 *** 1.3.9-2ubuntu1 0
        500 http://us.archive.ubuntu.com intrepid-updates/main Packages
        100 /var/lib/dpkg/status
     1.3.9-2 0
        500 http://us.archive.ubuntu.com intrepid/main Packages

Revision history for this message
Nick B. (futurepilot) wrote :

I think I've narrowed this down to a regression between cups 1.3.9-2 and cups 1.3.9-2ubuntu1. On a fresh install this works as expected. After applying the cups 1.3.9-2ubuntu1 update it's broken. Downgrading cups makes it work again. Also it's not specific to any printer, it's reproducible with the cups-pdf virtual printer.

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

Fix committed to the Debian BZR repository, to be included in the next CUPS release for Jaunty.

Attached is a replacement for your /usr/lib/cups/filter/cpdftocps file which fixes the bug. Make sure to make the file world-executable when replacing it. The fix is very simple. the new filter has only one character added.

Changed in cups:
status: New → Fix Committed
Revision history for this message
Nick B. (futurepilot) wrote :

That did the trick. It works as expected now. Thanks!

Martin Pitt (pitti)
Changed in cups:
assignee: nobody → till-kamppeter
assignee: nobody → pitti
status: New → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cups - 1.3.9-6

---------------
cups (1.3.9-6) experimental; urgency=low

  [ Till Kamppeter ]
  * debian/local/filters/cpdftocps: The cpdftocps filter did case-sensitive
    checking for CUPS options to keep them away from the pstops filter. CUPS
    treats such options case-insensitive, so in some cass CUPS options got
    applied twice (LP: #299707).

  [ Martin Pitt ]
  * debian/rules: Install the serial backend with 0744 permissions to make it
    run as root, since /dev/ttyS* are root:dialout and thus not accessible as
    user "lp". Thanks to Chanoch (Ken) Bloom. (part of #506181, LP: #154277)

 -- Martin Pitt <email address hidden> Thu, 20 Nov 2008 13:43:27 +0100

Changed in cups:
status: Fix Committed → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote :
Changed in cups:
status: In Progress → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote :

Accepted cups into intrepid-proposed, please test and give feedback here. Please see https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Revision history for this message
Nick B. (futurepilot) wrote :

I installed the package from Proposed on another computer and it has fixed the issue on that system as well.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cups - 1.3.9-2ubuntu3

---------------
cups (1.3.9-2ubuntu3) intrepid-proposed; urgency=low

  * debian/local/filters/pdf-filters/filter/pdftoraster.cxx: Fix include path
    of image.h, to fix FTBFS if libcupsimage-dev is not installed.

cups (1.3.9-2ubuntu2) intrepid-proposed; urgency=low

  [ Till Kamppeter ]
  * debian/local/filters/cpdftocps: The cpdftocps filter did case-sensitive
    checking for CUPS options to keep them away from the pstops filter. CUPS
    treats such options case-insensitive, so in some cases CUPS options got
    applied twice (LP: #299707).
  * debian/local/filters/pdf-filters/filter/pdftoraster.cxx: Fix handling of
    CMYK color space. Patch taken from upstream:
    http://svn.sourceforge.jp/view/pdftoraster/trunk/src/pdftoraster.cc?root=opfc&rev=850&r1=848&r2=850
    (LP: #294671)
  * debian/filters/pstopdf: Do not supply the margins from the PPD to the
    ps2pdf process, as this breaks full-bleed printing and is also disturbs
    the printing if PPDs have too conservative margin definitions. (LP: #282186)

  [ Martin Pitt ]
  * rootbackends-worldreadable.dpatch: Apply the same relaxed permission check
    to cups-deviced, so that backends installed as 0744 don't disappear from
    printer detecttion. This unbreaks the ipp/http and lpd detection.
    (LP: #275407, Debian #503644)
  * debian/rules: Install the serial backend with 0744 permissions to make it
    run as root, since /dev/ttyS* are root:dialout and thus not accessible as
    user "lp". Thanks to Chanoch (Ken) Bloom. (part of #506181, LP: #154277)
  * debian/control: Update Vcs-* for intrepid branch.

 -- Martin Pitt <email address hidden> Fri, 21 Nov 2008 13:13:14 +0100

Changed in cups:
status: Fix Committed → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote :

Copied to intrepid-updates.

Revision history for this message
David Fletcher (flightmaker) wrote :

My printer (stylus photo 950) is not connected to the desktop but to a USB socket on my server, so that it is available to any computer in the house.

The server is:-
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.04
DISTRIB_CODENAME=lucid
DISTRIB_DESCRIPTION="Ubuntu 10.04.3 LTS"

The desktop is:-
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.10
DISTRIB_CODENAME=maverick
DISTRIB_DESCRIPTION="Ubuntu 10.10"

I use LaTeX to do document preparation and print the resulting pdf files. Using Document Viewer I cannot get CUPS to output from the printer in reverse order.

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.