Bug 195077 - Could not print document
Summary: Could not print document
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.8.3
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-03 10:02 UTC by michal
Modified: 2010-07-11 17:23 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Sample of taskbar that should benefit from groupping (92.10 KB, image/png)
2009-06-24 10:53 UTC, michal
Details

Note You need to log in before you can comment on or make changes to this bug.
Description michal 2009-06-03 10:02:20 UTC
Version:           0.8.3 (using 4.2.3 (KDE 4.2.3), PLD-Linux)
Compiler:          i686-pld-linux-gcc
OS:                Linux (i686) release 2.6.27.13-1

When I try to print a PDF document I'm getting "Could not print document. Please report to bugs.kde.org".

I'm using locat CUPS to print on network printer.

- Cups log -------------------
localhost - - [03/Jun/2009:09:57:04 +0200] "POST / HTTP/1.1" 200 417 CUPS-Get-Printers successful-ok
localhost - - [03/Jun/2009:09:57:04 +0200] "POST / HTTP/1.1" 200 417 CUPS-Get-Classes successful-ok 
localhost - - [03/Jun/2009:09:57:04 +0200] "POST / HTTP/1.1" 200 72 CUPS-Get-Default client-error-not-found
localhost - - [03/Jun/2009:09:57:04 +0200] "POST / HTTP/1.1" 200 417 CUPS-Get-Printers successful-ok       
localhost - - [03/Jun/2009:09:57:04 +0200] "POST / HTTP/1.1" 200 417 CUPS-Get-Classes successful-ok        
localhost - - [03/Jun/2009:09:57:04 +0200] "POST / HTTP/1.1" 200 72 CUPS-Get-Default client-error-not-found
localhost - - [03/Jun/2009:09:57:04 +0200] "POST / HTTP/1.1" 200 417 CUPS-Get-Printers successful-ok       
localhost - - [03/Jun/2009:09:57:04 +0200] "POST / HTTP/1.1" 200 417 CUPS-Get-Classes successful-ok        
localhost - - [03/Jun/2009:09:57:04 +0200] "POST / HTTP/1.1" 200 72 CUPS-Get-Default client-error-not-found
localhost - - [03/Jun/2009:09:57:04 +0200] "POST / HTTP/1.1" 200 209 Get-Printer-Attributes successful-ok  
localhost - - [03/Jun/2009:09:57:04 +0200] "GET /ppd/HPLaserJetM2727nf.ppd HTTP/1.1" 200 19405 - -         
localhost - - [03/Jun/2009:09:57:04 +0200] "POST / HTTP/1.1" 200 209 Get-Printer-Attributes successful-ok  
localhost - - [03/Jun/2009:09:57:04 +0200] "GET /ppd/HPLaserJetM2727nf.ppd HTTP/1.1" 200 19405 - -         
localhost - - [03/Jun/2009:09:57:04 +0200] "POST / HTTP/1.1" 200 417 CUPS-Get-Printers successful-ok
localhost - - [03/Jun/2009:09:57:04 +0200] "POST / HTTP/1.1" 200 417 CUPS-Get-Classes successful-ok
localhost - - [03/Jun/2009:09:57:04 +0200] "POST / HTTP/1.1" 200 72 CUPS-Get-Default client-error-not-found
localhost - - [03/Jun/2009:09:57:04 +0200] "POST / HTTP/1.1" 200 417 CUPS-Get-Printers successful-ok
localhost - - [03/Jun/2009:09:57:04 +0200] "POST / HTTP/1.1" 200 417 CUPS-Get-Classes successful-ok
localhost - - [03/Jun/2009:09:57:04 +0200] "POST / HTTP/1.1" 200 72 CUPS-Get-Default client-error-not-found
localhost - - [03/Jun/2009:09:57:04 +0200] "POST / HTTP/1.1" 200 209 Get-Printer-Attributes successful-ok
localhost - - [03/Jun/2009:09:57:04 +0200] "GET /ppd/HPLaserJetM2727nf.ppd HTTP/1.1" 200 19405 - -
localhost - - [03/Jun/2009:09:57:04 +0200] "POST / HTTP/1.1" 200 417 CUPS-Get-Printers successful-ok
localhost - - [03/Jun/2009:09:57:04 +0200] "POST / HTTP/1.1" 200 417 CUPS-Get-Classes successful-ok
localhost - - [03/Jun/2009:09:57:04 +0200] "POST / HTTP/1.1" 200 72 CUPS-Get-Default client-error-not-found
localhost - - [03/Jun/2009:09:57:04 +0200] "POST / HTTP/1.1" 200 209 Get-Printer-Attributes successful-ok
localhost - - [03/Jun/2009:09:57:04 +0200] "GET /ppd/HPLaserJetM2727nf.ppd HTTP/1.1" 200 19405 - -
localhost - - [03/Jun/2009:09:57:04 +0200] "POST / HTTP/1.1" 200 209 Get-Printer-Attributes successful-ok
localhost - - [03/Jun/2009:09:57:04 +0200] "GET /ppd/HPLaserJetM2727nf.ppd HTTP/1.1" 200 19405 - -
localhost - - [03/Jun/2009:09:57:09 +0200] "POST / HTTP/1.1" 200 209 Get-Printer-Attributes successful-ok
localhost - - [03/Jun/2009:09:57:09 +0200] "GET /ppd/HPLaserJetM2727nf.ppd HTTP/1.1" 200 19405 - -
localhost - - [03/Jun/2009:09:57:09 +0200] "POST / HTTP/1.1" 200 417 CUPS-Get-Printers successful-ok
localhost - - [03/Jun/2009:09:57:09 +0200] "POST / HTTP/1.1" 200 417 CUPS-Get-Classes successful-ok
localhost - - [03/Jun/2009:09:57:09 +0200] "POST / HTTP/1.1" 200 72 CUPS-Get-Default client-error-not-found
localhost - - [03/Jun/2009:09:57:09 +0200] "POST / HTTP/1.1" 200 417 CUPS-Get-Printers successful-ok
localhost - - [03/Jun/2009:09:57:09 +0200] "POST / HTTP/1.1" 200 417 CUPS-Get-Classes successful-ok
localhost - - [03/Jun/2009:09:57:09 +0200] "POST / HTTP/1.1" 200 72 CUPS-Get-Default client-error-not-found
localhost - - [03/Jun/2009:09:57:09 +0200] "POST / HTTP/1.1" 200 209 Get-Printer-Attributes successful-ok
localhost - - [03/Jun/2009:09:57:09 +0200] "GET /ppd/HPLaserJetM2727nf.ppd HTTP/1.1" 200 19405 - -
localhost - - [03/Jun/2009:09:57:09 +0200] "POST / HTTP/1.1" 200 417 CUPS-Get-Printers successful-ok
localhost - - [03/Jun/2009:09:57:09 +0200] "POST / HTTP/1.1" 200 417 CUPS-Get-Classes successful-ok
localhost - - [03/Jun/2009:09:57:09 +0200] "POST / HTTP/1.1" 200 72 CUPS-Get-Default client-error-not-found
localhost - - [03/Jun/2009:09:57:09 +0200] "POST / HTTP/1.1" 200 417 CUPS-Get-Printers successful-ok
localhost - - [03/Jun/2009:09:57:09 +0200] "POST / HTTP/1.1" 200 417 CUPS-Get-Classes successful-ok
localhost - - [03/Jun/2009:09:57:09 +0200] "POST / HTTP/1.1" 200 72 CUPS-Get-Default client-error-not-found
localhost - - [03/Jun/2009:09:57:09 +0200] "POST / HTTP/1.1" 200 417 CUPS-Get-Printers successful-ok
localhost - - [03/Jun/2009:09:57:09 +0200] "POST / HTTP/1.1" 200 417 CUPS-Get-Classes successful-ok
localhost - - [03/Jun/2009:09:57:09 +0200] "POST / HTTP/1.1" 200 72 CUPS-Get-Default client-error-not-found
localhost - - [03/Jun/2009:09:57:09 +0200] "POST / HTTP/1.1" 200 209 Get-Printer-Attributes successful-ok
localhost - - [03/Jun/2009:09:57:09 +0200] "GET /ppd/HPLaserJetM2727nf.ppd HTTP/1.1" 200 19405 - -
localhost - - [03/Jun/2009:09:57:09 +0200] "POST / HTTP/1.1" 200 209 Get-Printer-Attributes successful-ok
localhost - - [03/Jun/2009:09:57:09 +0200] "GET /ppd/HPLaserJetM2727nf.ppd HTTP/1.1" 200 19405 - -
localhost - - [03/Jun/2009:09:57:09 +0200] "POST / HTTP/1.1" 200 417 CUPS-Get-Printers successful-ok
localhost - - [03/Jun/2009:09:57:09 +0200] "POST / HTTP/1.1" 200 417 CUPS-Get-Classes successful-ok
localhost - - [03/Jun/2009:09:57:09 +0200] "POST / HTTP/1.1" 200 72 CUPS-Get-Default client-error-not-found
localhost - - [03/Jun/2009:09:57:09 +0200] "POST / HTTP/1.1" 200 417 CUPS-Get-Printers successful-ok
localhost - - [03/Jun/2009:09:57:09 +0200] "POST / HTTP/1.1" 200 417 CUPS-Get-Classes successful-ok
localhost - - [03/Jun/2009:09:57:09 +0200] "POST / HTTP/1.1" 200 72 CUPS-Get-Default client-error-not-found
localhost - - [03/Jun/2009:09:57:09 +0200] "POST / HTTP/1.1" 200 209 Get-Printer-Attributes successful-ok
localhost - - [03/Jun/2009:09:57:09 +0200] "GET /ppd/HPLaserJetM2727nf.ppd HTTP/1.1" 200 19405 - -
------------------------------

There is nothing on stderr/stdout from okular.

Printing from KWrite to the very same printer works without problems.

I'm aware that this description isn't probably sufficient and I'll be happy to provide any information that may help - please ask.
Comment 1 Albert Astals Cid 2009-06-03 20:40:58 UTC
any pdf or a particular one?
Comment 2 michal 2009-06-04 10:30:45 UTC
Any PDF. Printing worked from KPDF before upgrade from KDE 3.x, so I don't think CUPS is to blame.
Comment 3 Pino Toscano 2009-06-06 22:10:49 UTC
Please post the output your get when running okular from a console and then
printing. Make sure that if running `kdebugdialog` you have all the okular
debug areas enabled.
Comment 4 michal 2009-06-08 11:04:46 UTC
There is almost no output:

[mkochano@imax ~]$ okular
okular(6803): Attempt to use QAction "bookmark_action_0" with KXMLGUIFactory!
[mkochano@imax ~]$

In debug dialog I have marked for Okular: 4700, 4710, 4711, 4712, 4713, 4714, 4715.
Comment 5 michal 2009-06-24 10:53:48 UTC
Created attachment 34778 [details]
Sample of taskbar that should benefit from groupping
Comment 6 michal 2009-06-24 11:12:24 UTC
(In reply to comment #5)
> Created an attachment (id=34778) [details]
> Sample of taskbar that should benefit from groupping

Wrong place, sorry. Can I delete comment and attachment?
Comment 7 michal 2009-08-14 10:47:43 UTC
I've solved this problem. I needed to instal cups subpackage providing /usr/bin/lpr. I didn't know Okular prints via this program.

And, to be honest, the error message could be better. So I'm not closing this bug. Please consider it an error message change request.
Comment 8 Albert Astals Cid 2010-07-11 17:23:02 UTC
We tell the user a better error message now saying we could not find a suitable binary to print and that he should install cups lpr