OpenPrinting / cups-filters

filters, backends, driverless utility, ... - Everything which CUPS 2.x needs to be used on non-Mac systems
Apache License 2.0
159 stars 126 forks source link

pdftops filter of CUPS is failing while printing One particular pdf document (attached) is printing using generic postscript ppd. #570

Open skapas opened 9 months ago

skapas commented 9 months ago

Describe the bug "pdftops" filter of CUPS is failing while printing One particular pdf document (attached) is printing using generic postscript ppd. CUPS version: CUPS 2.3.4

To Reproduce Steps to reproduce the behavior:

  1. Create a print queue using Generic PostScript Printer (color) from the cups page "add printer".

  2. Open the document (attached pdf) and print by selecting the print queue. Appliance_Expectation_Sheet_Job 1.pdf

  3. See error: Stopped. Filter failed in Cups

Expected behavior It should be print properly like other PDF is printing.

Screenshots Error in cups log

Screenshot 2024-01-29 at 12 37 08 PM

System Information:

Additional context Follow the instructions from the REPORTING-ISSUES document and provide all information regarding the issue.

GWHAYWOOD commented 4 months ago

Me too.

For about a week I've been trying to print an invoice from a supplier. CUPS appears to think it's printed it OK but it hasn't appeared in the paper tray on the printer.

Today 2024/07/17 I sent three invoices to a printer.

I used 'lpr' at the (single) command line. It's the sort of thing I usually do:

lpr -Pm1522n file1.pdf file2.pdf file3.pdf

Of the three files listed on the command line, the first was the problematic one and the other two were invoices from a supplier whose invoices have never given trouble.

Each file was a single page PDF invoice.

The first file on my command line did not produce any output. The second two did.

There is absoluterly nothing in the CUPS error log. It is zero bytes for today.

The access log says the files printed OK. It's wrong.

The CUPS Web interface showed the job completed, three pages.

M1522n-228 Unknown Withheld 266k 3 completed at Wed Jul 17 17:17:17 2024 [*]

But the printer only printed two of them.

In desperation I converted the problem PDF to PostScript.

It was 5.6MB instead of 106kB, but it printed no trouble.

Cups said it didn't know how many pages it was:

M1522n-230 Unknown Withheld 5608k Unknown completed at Wed Jul 17 17:57:38 2024

Happy to send the problem PDF file to someone who wants to investigate but I don't want to publish it.

[*] I can hardly believe that time! It wasn't me messing about.

I suppose this could be the printer's fault but I have no way of knowing.