Problem printing from Firefox to Cups
Hello, I cannot print from firefox to cups. I use cups 1.4.8-1 and firefox 5.0.1-1. The message in the cups error log is as follows: Returning IPP client-error-document-format-not-supported for Print-Job (ipp://localhost:631/printers/dj5550) from localhost I use the hpijs printer driver to print to a HP Deskjet 5550 printer. Printing the test page from the cups web interface works flawlessly. Printing from the chromium web browser does not work too. The error message is the same. The only way to print a web page for me is to print it from firefox to a PDF file and then print the PDF file from epdfview. This works. The problem existed before the latest cups update with cups version 1.4.6-1 too. I cannot exactly tell when it started. I only remember that some month ago I could print from firefox without problems. Has anyone an idea how to fix this? Regards Markus
On Thu, Jul 28, 2011 at 07:24:15PM +0200, Markus Heinz wrote:
Hello,
Hello Markus, thanks for the report, I see the same error here.
I cannot print from firefox to cups. I use cups 1.4.8-1 and firefox 5.0.1-1. The message in the cups error log is as follows:
Returning IPP client-error-document-format-not-supported for Print-Job (ipp://localhost:631/printers/dj5550) from localhost
if you set LogLevel to debug in /etc/cups/cupsd.conf you'll see another error message in /var/log/cups/error_log: Print-Job client-error-document-format-not-supported: Unsupported format 'application/pdf'!
I use the hpijs printer driver to print to a HP Deskjet 5550 printer. Printing the test page from the cups web interface works flawlessly.
Printing from the chromium web browser does not work too. The error message is the same. The only way to print a web page for me is to print it from firefox to a PDF file and then print the PDF file from epdfview. This works.
The problem existed before the latest cups update with cups version 1.4.6-1 too. I cannot exactly tell when it started. I only remember that some month ago I could print from firefox without problems.
Has anyone an idea how to fix this?
The problem is that firefox, beginning with version 5, seems to use pdf instead of ps for printing. With Firefox 4.x and 3.x we don't have the issue. The easiest fix is to modify cups' Pkgfile and change --with-pdftops=none to --with-pdftops=gs and rebuild the cups package. The drawback is that we introduce a circular dependency, because ghostscript itself depends on cups. The second possibility is to install either xpdf or poppler and use --with-pdftops=pdftops with cups, which pulls in other dependencies. Not very nice at all, but currently the only clean solution. One idea might be to create a new port, maybe called pdf-utils, that includes only the cli part of either poppler or xpdf. HTH and best regards Juergen
Hello Juergen, On Fri, 29 Jul 2011 14:56:57 +0200 Juergen Daubert <jue@jue.li> wrote:
On Thu, Jul 28, 2011 at 07:24:15PM +0200, Markus Heinz wrote:
Hello,
Hello Markus,
thanks for the report, I see the same error here.
I cannot print from firefox to cups. I use cups 1.4.8-1 and firefox 5.0.1-1. The message in the cups error log is as follows:
Returning IPP client-error-document-format-not-supported for Print-Job (ipp://localhost:631/printers/dj5550) from localhost [...] Has anyone an idea how to fix this?
The problem is that firefox, beginning with version 5, seems to use pdf instead of ps for printing. With Firefox 4.x and 3.x we don't have the issue.
The easiest fix is to modify cups' Pkgfile and change --with-pdftops=none to --with-pdftops=gs and rebuild the cups package. The drawback is that we introduce a circular dependency, because ghostscript itself depends on cups.
The second possibility is to install either xpdf or poppler and use --with-pdftops=pdftops with cups, which pulls in other dependencies. Not very nice at all, but currently the only clean solution.
I have chosen the second option as I have installed poppler anyway and now I can print from firefox again.
One idea might be to create a new port, maybe called pdf-utils, that includes only the cli part of either poppler or xpdf.
HTH and best regards Juergen
Thanks a lot and best regards Markus
participants (2)
-
Juergen Daubert
-
Markus Heinz