pstops filter ignores sides=two-sided-* options for duplex printing

Bug #411392 reported by Duncan Sinclair
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
cups (Ubuntu)
Fix Released
Undecided
Martin Pitt

Bug Description

Binary package hint: cups

Attempting duplex printing using standard documented duplex options doesn't produce duplex jobs.

% zcat /usr/share/doc/cups/changelog.Debian.gz | lp -d printer -o sides=two-sided-long-edge

Resultant postscript output contains this...

=======
%%BeginFeature: *Duplex None

  <</Duplex false>> setpagedevice
%%EndFeature
=======

I expected this...

=======
%%BeginFeature: *Duplex DuplexNoTumble

  <</Duplex true /Tumble false>> setpagedevice
%%EndFeature
}
=======

As a result, output is printed single-sided.

Similarly, "sides=two-sided-short-edge" is also ignored.

As well as affecting command-line specified options, this bug also means that Mac users printing via this server cannot get duplex jobs, as it uses these option to specify duplex.

The printer is a HP P2055DN, and I'm using the PPD from hpijs-ppds.

Architecture: i386
DistroRelease: Ubuntu 9.04
Package: cups 1.3.9-17ubuntu3.2

Revision history for this message
Duncan Sinclair (duncan-sinclair) wrote :

I've just figured out about the cpdftocps filter...

Deleting "sides" from the list of options not to send to pstops fixes this bug.

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

Thank you for the bug report. I have committed your suggested fix to the BZR repository of CUPS at Debian. It will be included in the next CUPS package.

Changed in cups (Ubuntu):
status: New → Fix Committed
milestone: none → ubuntu-9.10-beta
Changed in cups (Ubuntu):
assignee: nobody → Martin Pitt (pitti)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cups - 1.4.1-2

---------------
cups (1.4.1-2) unstable; urgency=low

  [ Till Kamppeter ]
  * debian/local/filters/cpdftocps: Double-sided printing did not work on
    PostScript printers when the "sides" command line option for "lp"/"lpr"
    was used (LP: #411392).
  * debian/patches/maintain-default-option-settings.dpatch: For options with
    an underscore (or any other allowed non-alphanumeric character) in their
    names the default settings were not conserved when the PPD got replaced
    ("lpadmin -p ... -m ...", system-config-printer, automatic PPD update
    for existing print queues). Fixes LP: #432902 and CUPS STR #3340.

  [ Martin Pitt ]
  * debian/cups.init.d: Don't actually re-trigger udev events for printer
    coldplugging, since according to Scott James Remnant this slows down boot
    and kills kittens. Instead, just call it with --dry-run and manually call
    udev-configure-printer.
  * debian/cups.init.d: Only run udevadm if udev and the callout are actually
    available. Drop udev dependency to a suggests. This unbreaks cups on
    platforms which do not have udev, such as kfreebsd. (Closes: #546922)
  * debian/cups.init.d: Drop "cupsctl RIPCache" setting. It changes our
    conffile (causing dpkg prompts on upgrade), and overwrites the admin's
    setting without warning.
  * Add dynamic-default-ripcache-size.dpatch: Replace above functionality by
    setting the internal default value of RIPCache to MemTotal/4, if not given
    in the configuration file.
  * debian/rules: Do not let the usb backend run as root in Ubuntu any more,
    since that has a recent enough udev. Still keep it for Debian.
  * debian/cups-ppdc.install: Update path for Martin-Éric's section change of
    drv manpage.

  [ Martin-Éric Racine ]
  * Add manual-section-for-drv.dpatch: Fix incorrect man section 7 -> 1 as
    reported by Lintian.

 -- Martin Pitt <email address hidden> Wed, 23 Sep 2009 23:58:15 +0200

Changed in cups (Ubuntu):
status: Fix Committed → Fix Released
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.