Registered Member
|
Hello--I'm not exactly sure if this is the appropriate forum to ask this question, but I couldn't find any information on this problem anywhere else, so I thought I'd try here.
First of all, I'm running Kubuntu 9.10 (KDE version 4.3.3) on an HP TouchSmart tx2z laptop printing to an HP Deskjet 5940 printer. It actually works very well for most applications, but I do have one problem trying to print a PDF or DVI from Okular (some other formats, such as ODT, work fine). The printer shows up just fine, and when I print the document does indeed get sent to the printer queue, but then it gets stuck as "held" indefinitely. Trying to "release" the document does no good, although I can "cancel" it. The printer's status (as revealed by lpstat) then goes to "Couldn't read xref table". Interestingly, if I start Okular as root, it prints just fine. Clearly, there is some sort of permissions problem going on, but I'm a little confused because none of my other applications (Kate, OpenOffice.org, etc.) need to be started as root in order to print. Any insight you can give would be appreciated. |
Administrator
|
Can you try enabling "Force Rasterization" under Print > Options > PDF Options?
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
Thanks for your reply; unfortunately, this still doesn't work. I also tried uninstalling and reinstalling Okular, but the same behavior occurs. So far, it seems Okular can print ODT and image files (JPG, TIF, etc.) just fine, but not DVI, PS, or PDF. |
Administrator
|
And you recieve the exact same error regardless of the file type being printed?
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
Well, there's never exactly an error message displayed. But yes, the behavior is the same regardless of whether I try to print a DVI, PS, or PDF: the document gets sent to the printer queue, where it is permanently "held" until cancelled, and the printer's status gets set to "Couldn't read xref table." If there is some particular error log I should look into to try to obtain more information, please let me know. |
Administrator
|
Can you please check if an alternative PDF viewer is able to print? XPDF should be able to do the job.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
Yes, XPDF can print just fine, even without being run as root. |
Registered Member
|
I should probably mention that this is a local (rather than network) printer I am trying to print to, and the "Print to File (PDF)" and "Print to File (Postscript)" options both work fine in Okular.
I have attached the output of /var/log/cups/error_log below in case that helps. Again, this file prints perfectly under XPDF, and perfectly under Okular if run as root.
|
Administrator
|
Can you check you have the latest version of CUPS from the standard repositories installed? ( http://ubuntuforums.org/showthread.php?t=905044 )
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
I think I have the latest version; I mean, the only repositories I have added other than the default ones are http://ppa.launchpad/kubuntu-ppa/ppa/ubuntu karmic and http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu karmic, and it says I am completely updated. The version of the CUPS packages I have installed seems to be 1.4.1-5 based on the package names, although if there is some other way I should check the version or some other repositories I should look for updates in, please let me know. |
Administrator
|
This is unusual. Can you please check to see if there is any difference between XPDF and Okular in how printing is handled?
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
I really don't know at this point--I'm pretty sure XPDF just uses "lpr", but I don't know how Okular sends information to the printer. If it helps, I turned "Save debugging information" on and generated the following error log files for each case (successful printing with XPDF, failed printing with Okular, and successful printing with Okular as root): http://stashbox.org/712236/error_log_xpdf.txt http://stashbox.org/712238/error_log_okular.txt http://stashbox.org/712239/error_log_sudo_okular.txt Sorry for the file hosting service; just didn't want to clutter up this message with unreadable long lists and I couldn't figure out how to attach them. I don't really know what to make of the differences between these logs, but maybe someone else does. |
Administrator
|
The problem appears to be that CUPS thinks it is recieving a PDF file from Okular, when it is infact recieving Postscript from Okular. Unfortunately I do not know why this happens. I haven't seen it before, so it is likely to be a bug in CUPS.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
That makes sense, but then why would Okular successfully print as root? That was the one thing that kept me from thinking this was some sort of bug in the first place--I just thought I had my permissions settings wrong somewhere. |
Administrator
|
It doesn't make sense why it works as root. Only a expert in CUPS would be able to determine the issue, as KDE doesn't do anything special.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered users: Bing [Bot], claydoh, Evergrowing, Google [Bot], rblackwell