-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Printing multiple copies prints only 1 (pstopdf vs gstopdf) #255
Comments
cups-filters 1.8.2-3.1 use FOR THE SAME PRINT JOB: GSTORASTER cups-filters 1.25.0-lp152.1.8 use: GSTORASTER I tried swapping PDFTOPDF filter from older version and use it under new version of cups-filters and the print job works but only prints one copy. |
So the problem most likely lies within the GSTOPDF filter. I have tried using the PSTOPDF filter from 1.8.2-3.1 along with GSTORASTER + PDFTOPDF from 1.25.0-lp152.1.8 and it works just fine, as long as I rename PSTOPDF --> GSTOPDF. |
CORRECT AMOUNT OF COPIES.zip I have attached logs with detailed logging of the same print job. |
Further examining the 2 logs, I have found out that this parameter "-dDoNumCopies" is not called when using the original, new gstopdf. It is however called when using the pstopdf disguised as gstopdf. |
Fixed in commit 6157b8f. Thank you very much for the bug report. Please test. |
Yes this issue was fixed in CUPS ver. 2.3.3op1. However, many OS packages still As many have recommended, editing the .ppd file for your printer to change Here are the steps to fix the problem for your current printer(s). It must be sudo su While the CUPS service is not running, edit ALL .ppd file in this directory. systemctl start cups |
I am affected by this bug (or a bug with similar symptoms). The client is a Manjaro Linux machine, I don't know much about the server. Is the bug on the server or on the client side? |
I have installed CUPS 2.2.6 in unix machine. I added printer using socket as recommended approach, like socket://11.22.33.44:9100.
In this case, I manually cancelled the job. |
Tried to print two copies of a document on TOSHIBA e-STUDIO3015AC from a fresh Linux Mint 22 (based on Ubuntu 24.04). Two copies were printed indeed, but they were stapled together, as if they were one. |
Maybe the same issue as OpenPrinting/libppd#42 |
I have to add that the issues with CUPS are weird and hard to debug. I'll try to explain. I managed to get multiple copies printed and stapled correctly. For this I executed # systemctl stop cups
# systemctl start cups Then the issue was gone. However, after a reboot the issue was back. # systemctl restart cups instead of Here are more detailed observations.
I remember that couple of years ago (on Linux Mint 21) I managed to find a workaround for the issue with printing multiple copies on these same network printers somehow as follows, IIRC: I tweaked somehow the PPD files in |
I'll try to explain my understanding @alexeymuranov.
After this step, the cups-browse will create a driver named "driverless". And the "driverless" will cause the bug: "Two copies were printed indeed, but they were stapled together".
After this step, the GTK (GUI print dialog) will notify cups to create a temporary driver named "everywhere". And the "everywhere" driver prints well. After printing for a few seconds, the "everywhere" driver will automatically disappear. Is the following trick feasible? Notes: The "foo-printer" in above command can be replaced by any queue name you like. |
@szlt5 thanks for the information. I may try your suggestion when I am back at office. Should I keep the |
It's ok to put it somewhere else, if you put it in the /tmp, the command should be: |
@szlt5 , tested you suggestion, it worked! Update. I notice however that with the "everywhere" driver some PDF files are not printed correctly in "Color" mode: some content is replaced with thin horizontal colored lines or not printed at all. The problem seems to be related to the use of gradients in the PDF. |
Hello.
PROBLEM DESCRIPTION: Printer only prints one copy even though we want to print multiple copies of a document.
Our company uses postscript to print documents from our POS system based on Java and everything was working fine until we reached OpenSUSE 15.x distribution (15.0, 15.1, 15.2).
With the help of a friend from OpenSUSE forums (thanks deano_ferrari) I have managed to pinpoint the culprit.
I have attached a print file generated from our POS system.
The last working distribution was LEAP 42.3 along with the package cups-filters version 1.8.2-3.1
On our new system running LEAP 15.2 along with cups-filters version 1.25.0-lp152.1.8 it is NOT working.
So I tried to downgrade the cups-filters package from 1.25.0-lp152.1.8 to 1.8.2-3.1 and the problem was FIXED. The printer corrently printed multiple copies of a document. Going back to the new version of cups-filters, the printer only prints one copy. It affects multiple printers of various manufacturers.
I have also managed to identify all the filters used in the operation.
GSTORASTER
PDFTOPDF
GSTOPDF
RASTERTOSPL - this is a Samsung driver used everywhere so this is not the problem
So based on my research I would guess that thr problem lies within the first three filters.
postscript print file.zip
If you need me to attach additional logs I am more than happy to provide.
Thank you for your time and for looking into this.
Honza
The text was updated successfully, but these errors were encountered: