pdftopdf doesn't perform software collate

Bug #1259240 reported by Andrey Makhalkin
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cups-filters (Ubuntu)
Fix Released
Undecided
Tobias Hoffmann

Bug Description

Pages printed are not collated when I print a document with multiple copies set and Collate option enabled on a printer without hardware collate support.

Printer is Samsung ML-2950.

Operating systems affected are: Linux Mint 16, Ubuntu 13.04

CUPS filters pipe for printing a test text file is the following:

D [09/Dec/2013:14:34:00 +0400] [Job 16] texttopdf (text/plain to application/pdf, cost 32)
D [09/Dec/2013:14:34:00 +0400] [Job 16] pdftopdf (application/pdf to application/vnd.cups-pdf, cost 66)
D [09/Dec/2013:14:34:00 +0400] [Job 16] gstoraster (application/vnd.cups-pdf to application/vnd.cups-raster, cost 99)
D [09/Dec/2013:14:34:00 +0400] [Job 16] rastertospl (application/vnd.cups-raster to printer/test, cost 0)

rastertospl is proprietary filter, which converts CUPS raster data to Samsung's SPL PDL.

PPD file is attached.

Further investigation has shown, that pdftopdf filter does not perform software document copy generation with my PPD file set in environment variable PPD, its output contains a single copy, but resulting CUPS raster contains information about multiple copies and rastertospl generates SPL output with mutiple copies for each page (uncollated).

pstops filter, started with the same CUPS job options set and multi-page PostScript input, generates PostScript output with properly collated pages.

pdftopdf has been executed with following parameters:

/usr/lib/cups/filter/pdftopdf 1 user "test" 2 "Collate" texttopdf.pdf > pdftopdf.pdf

When I start pdftopdf with the same parameters, but with PPD environment variable unset, it generates PDF file with document copies created.

When I modify PPD file by changing *cupsManualCopy attribute value to True, pdftopdf produces collated output.

This printer supports hardware page copies, but does not support collate in hardware.

It seems that pdftopdf filter logic used to determine collate method does not handle this case correctly.

Revision history for this message
Andrey Makhalkin (a-makhalkin) wrote :
Changed in cups-filters (Ubuntu):
assignee: nobody → Tobias Hoffmann (smilingthax)
status: New → In Progress
Revision history for this message
Tobias Hoffmann (smilingthax) wrote :

Fixed in bzr revision 7145.

Changed in cups-filters (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Thank you very much for the quick fix, Tobias. The fix will get into Ubuntu with the cups-filters 1.0.43 release.

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

cups-filters 1.0.43 (with the fix) released upstream.

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

This bug was fixed in the package cups-filters - 1.0.43-1

---------------
cups-filters (1.0.43-1) unstable; urgency=medium

  * New upstream release 1.0.43:
    - pdftopdf: Fixed software copy generation logic for printers
      with hardware copy generation, but without collate support
      (LP: #1259240).
    - pstopdf: Support for the "landscape" and
      "orientation-requested" options (LP: #1243484).
  * Drop all patches:
    - PATH_MAX fix was from upstream;
    - The Fedora fix for PDF landscape printing got included
      differently.
  * Update debian/watch to prefer .xz tarballs
  * Install manpages for cups-browsed and foomatic-rip

 -- Didier Raboud <email address hidden> Thu, 19 Dec 2013 19:29:49 +0100

Changed in cups-filters (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.