Bug 702761

Summary: lpr does not honor -# option
Product: [Fedora] Fedora Reporter: Bill Lee <Bill>
Component: cupsAssignee: Tim Waugh <twaugh>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 14CC: jpopelka, twaugh
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-16 16:34:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Printer troubleshooting output (as requested)
none
test page none

Description Bill Lee 2011-05-06 21:14:10 UTC
Description of problem:
lpr using -# option does not print the number of requested copies

Version-Release number of selected component (if applicable):


How reproducible:
Always.
Use lpr to print a PostScript (probably any) file and include the option "-# 2"

Steps to Reproduce:
1.Create a file to print. PostScript (or probably any) format
2.Use lpr and include the option "-# 2"
3.
  
Actual results:
Only one copy printed


Expected results:
Two copies printed

Additional info:

Comment 1 Jiri Popelka 2011-05-09 14:01:13 UTC
Works here.

Please run printing troubleshooter
https://fedoraproject.org/wiki/Printing/Debugging#Printing_troubleshooter
When it asks you to print a test page, print the document with 'lpr -# 2'.
Then attach the output of troubleshooter to this bug report.

You could also attach the postscript file you are printing (you can make the attachment private if you want).

Comment 2 Bill Lee 2011-05-11 11:57:16 UTC
Created attachment 498271 [details]
Printer troubleshooting output (as requested)

Comment 3 Bill Lee 2011-05-11 11:59:28 UTC
Created attachment 498273 [details]
test page

Using Xerox 8550 as printer.

Comment 4 Jiri Popelka 2011-05-11 14:59:48 UTC
Ok, I can confirm that when I print the attached file with
'lpr -# 2 2011-04_bookPg1.ps' only one copy is printed.

Comment 5 Tim Waugh 2011-05-25 15:43:30 UTC
I believe the fault lies with the PostScript code produced by the "pswrite" driver.

How did you generate 2011-04_bookPg1.ps?  Could you try using the ps2write device (i.e. -sDEVICE=ps2write) instead of the pswrite device?

Comment 6 Bill Lee 2011-05-25 16:19:34 UTC
The process is as follows:

1) Export the document as pdf from OpenOffice.

2)Use pdf2ps to take the pdf of the document into a PS file (call it "theDocument.ps).

(An alternative which I have not explored is to "print to a file" i nPostScript format directly from OO.)

3) ps2book --debug -c --m=legal -p letter theDocument.ps

This produces an output called theDocument_book.ps

using lpr to print this document, the -# NNN fails.

The example I have already attached was the first page of theDocument. Not sure how I got it, but used one tool or another on my system (Linux/Fedora14).

BTW, the =# NN worked just fine up until a year or so ago. Which is NOT to say that the problem isn't in one of the tools I use to get to the "_book" format.

Comment 7 Tim Waugh 2011-05-26 11:29:42 UTC
Okay, I expect that exporting straight to PostScript, rather than going via PDF, will avoid this particular problem.  Failing that, you could try pdftops instead of pdf2ps -- this poppler-based utility is much more reliable in my experience.

Another variable is whether you use the "collate" option when printing, i.e. lpr -o collate -# 2 ...

I'm not sure which package provides the "ps2book" utility you're using -- perhaps it's actually "psbook" from psutils?

In any case, it would be useful if you could narrow down the shortest sequence of steps to reproduce the problem, so that we can identify the problem component.

Comment 8 Fedora End Of Life 2012-08-16 16:34:10 UTC
This message is a notice that Fedora 14 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 14. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained.  At this time, all open bugs with a Fedora 'version'
of '14' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this 
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen 
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we were unable to fix it before Fedora 14 reached end of life. If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora, you are encouraged to click on 
"Clone This Bug" (top right of this page) and open it against that 
version of Fedora.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping