Cannot Print from Okular

Hi I am running openSUSE 12.2 with KDE desktop and Okular is the preferred application for opening pdf files.
It works OK for reading the files on screen but if I go to File>Print Preview I get a blank screen with small logo in the corner and I cannot print.

What settings must I tweak to be able to print from Okular please?
Budgie2

Corrrection to the above. Plain documents do print OK but illustrated documents from the web do not. Sorry I didn’t make it clear above.

I find I am writing to myself once more. Now I cannot print pdf attachments to email.

Can anybody please help?
Budgie2

The most important piece of information is missing from your post - what printer?
is this for an HP printer using HPLIP?
There are issues with the version of HPLIP included with openSUSE 12.2
If that is the case then add the printing repo and update HPLIP

Index of /repositories/Printing/openSUSE_12.2

On 2013-08-09 16:36, Budgie2 wrote:

> I find I am writing to myself once more. Now I cannot print pdf
> attachments to email.
>
> Can anybody please help?

I do not use okular, sorry. If you try another viewer and it also fails,
then I might help. Acrobat reader, evince, xv, gv…


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

On 2013-08-09 16:46, farcusnz wrote:
>
> The most important piece of information is missing from your post - what
> printer?

I assume that he can print from other programs; thus the printer model
should be irrelevant. :-?


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

On 2013-08-09 16:53, Carlos E. R. wrote:
> On 2013-08-09 16:36, Budgie2 wrote:
>
>> I find I am writing to myself once more. Now I cannot print pdf
>> attachments to email.
>>
>> Can anybody please help?
>
> I do not use okular, sorry. If you try another viewer and it also fails,
> then I might help. Acrobat reader, evince, xv, gv…

Try something: print to postscript file. The open that file with gv. Is
it correct?


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

Hi and thanks for the reply. Please forgive me I should have made it clear that the printer is an HP LaserJet 5M. I do have the Printer repo installed and the updates but will check again.

The Print Preview does not work and all I get is a blank page image with the Okular logo in the top left hand corner of the blank page. Strange thing is it works for some pdf files. My guess is that the pdf files which do not work are from a windoze machine!

Regards,
Budgie2

Hi there, just installed evince and it works a treat. Problem solved for now.
Thanks again,
Budgie2

there was an issue with the release version of HPLIP/ghostscript in openSUSE 12.2 for a number of HP printer models - two of the many symptoms being, trouble printing pdf from okular and trouble printing images from certain applications (including okular and libreoffice).
I forget which were specifically hplip related and which were ghostscript related.

to the OP - it could be worth trying the switch repo function in yast to move all printing related files over to the print repo and see if that helps at all. It certainly is unlikely to cause you any grief.

Hi and thanks for the continuing interest. I switched repo for all the HPLIP files and rebooted (a very rare event here as machine runs 24/7) but still no success with the problem pdf files. Evince works fine. Another point for Gnome!!! At this rate I shall soon abandon KDE.
Regards,
Budgie2

Budgie2 wrote:
>
> farcusnz;2578016 Wrote:
>> there was an issue with the release version of HPLIP/ghostscript in
>> openSUSE 12.2 for a number of HP printer models - two of the many
>> symptoms being, trouble printing pdf from okular and trouble printing
>> images from certain applications (including okular and libreoffice).
>> I forget which were specifically hplip related and which were
>> ghostscript related.
>>
>> to the OP - it could be worth trying the switch repo function in yast
>> to move all printing related files over to the print repo and see if
>> that helps at all. It certainly is unlikely to cause you any grief.
>
> Hi and thanks for the continuing interest. I switched repo for all the
> HPLIP files and rebooted (a very rare event here as machine runs 24/7)
> but still no success with the problem pdf files. Evince works fine.
> Another point for Gnome!!! At this rate I shall soon abandon KDE.
> Regards,
> Budgie2
>
>
Then use Evince on KDE. There is not point in abandoning a DE for the
sake of a App which is misbehaving.


GNOME 3.6.2
openSUSE Release 12.3 (Dartmouth) 64-bit
Kernel Linux 3.7.10-1.16-desktop

switch all printing related files - not just hplip.
SUSE Paste

On 2013-08-09 17:56, farcusnz wrote:
> there was an issue with the release version of HPLIP/ghostscript in
> openSUSE 12.2 for a number of HP printer models - two of the many
> symptoms being, trouble printing pdf from okular and trouble printing
> images from certain applications.
> I forget which were specifically hplip related and which were
> ghostscript related.

Ah, yes, I remember now. I think there were some updates in the print
repo that helped a bit.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

Hi and thanks once more and for the screen image. My previous post was not accurate and is misleading. I have switched repo for all the printing files that are installed, not just hplip, which includes those shown on your screen. There are others on the printing repo site which are not installed. What I do not know is how the choice of what to install was made in the first place. I guess at several stages in the set up process depending on my choice of printers and the dependencies involved.

Since the printers are and always have been working with other programs and okular too on occasions, it seems either that there is a file in the repo site that Okular but nothing else needs which is not installed or that the fault lies with Okular or with the particular pdf files which I cannot print.

It would be good to get to the bottom of this but are you suggesting that I install all the printing repo files? It might be worth checking my list first. Not sure how to get this list out of yast other than by hand copying. Further advice would be welcome but only if you have time. Meanwhile I am using Evince for my work and will do a few test on the offending subject files.

Regards,
Budgie2

On 2013-08-10 09:46, Budgie2 wrote:

> Since the printers are and always have been working with other programs
> and okular too on occasions, it seems either that there is a file in the
> repo site that Okular but nothing else needs which is not installed or
> that the fault lies with Okular or with the particular pdf files which I
> cannot print.
>
> It would be good to get to the bottom of this but are you suggesting
> that I install all the printing repo files?

I don’t think so :-?

> It might be worth checking
> my list first. Not sure how to get this list out of yast other than by
> hand copying. Further advice would be welcome but only if you have
> time. Meanwhile I am using Evince for my work and will do a few test on
> the offending subject files.

IF there is a problem with ghostscript, it would affect printing
directly from pdfs, and displaying pdfs by tools that use this library.
I don’t know what okular uses. You can check by displaying those PDFs
with gv, I believe.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

A PDF file can have certain “DRM” restrictions: f.e. you may not be allowed to print it.
Maybe that was the problem?

It could be that envince just ignores those restrictions, I’m not sure. At least Okular respects them by default, but this can be turned off in its settings.

Hi, I thought I had cracked this problem by using evince but I have just found a file where I can only print the first page even using evince. I suspect some form of protection may be the cause but can find no indication that this is the case. The Okular settings do not have DRM box ticked so is there any other switch?

Budgie2

I’ve had problems with illustrated .pdf’s
One’s I’ve made myself, usually a map
I end up doing the work in LOffice and it’s fine

Many thanks for instant reply. In fact I have tried LO but it will not open. I have used Okular to print to .ps file and then opened in gv. All pages are present and correct but how do I print from gv which is the back end of Okular anyhow.

I have no idea which printer is set up if I use lpr. Back to command line but I need help please. There are two printers set up but what do I enter in the box when I select Print All in gv. The default is lpr but this fails. I should be able to send the .ps file to the HP printer because it has native ps installed.
Grateful for any further thoughts.
Regards,
Budgie2