Bug 339996 - Okular does not print German umlauts from PDF-files encouded on windows
Summary: Okular does not print German umlauts from PDF-files encouded on windows
Status: RESOLVED DOWNSTREAM
Alias: None
Product: okular
Classification: Applications
Component: printing (show other bugs)
Version: 0.20.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-15 15:30 UTC by Peter
Modified: 2014-11-16 11:18 UTC (History)
2 users (show)

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


Attachments
The pdf file which's umlauts cannot be printed (133.37 KB, application/pdf)
2014-10-15 15:32 UTC, Peter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter 2014-10-15 15:30:45 UTC
When printing the attached PDF with okular the german umlauts are missing.
As far as I know the PDF had been created on a Windows machine.



Reproducible: Always

Steps to Reproduce:
1.Open attached file
2.Print it

Actual Results:  
Does not print the umlauts


When printing to an PS file, the umlauts are still present;
However if you print the PS file on a printer, umlauts are missing again.

Evince also does not print the umlauts in this particular file correctly on my system, and if you print this PDF to a postscript file with evince, umlauts are missing in the PS file.

So there might be a problem in a library both evince and okular are using. (Just guessing)
Comment 1 Peter 2014-10-15 15:32:30 UTC
Created attachment 89149 [details]
The pdf file which's umlauts cannot be printed
Comment 2 Burkhard Lück 2014-10-15 15:59:06 UTC
$ okular --version
Qt: 4.8.6
KDE: 4.14.1
Okular: 0.20.0
+
$ okular --version
xxQt: 4.8.2
KDE Development Platform: 4.14.60
xxOkularxx: 0.20.60
xx

Both versions of Okular build from sources print german Umlaute here.
Comment 3 Peter 2014-10-15 17:10:14 UTC
I have the same okular version:
Qt: 4.8.6
KDE: 4.14.1
Okular: 0.20.0
(on Fedora 20.)

Do you have a suspicion how this issue with this particular file may be caused?
Might different installed fonts be the reason for it? 
Or the printer driver? (Which seems unlikely to me, as evince has the  mentioned problem when creating PS files.)

Any further help appreciated. ;-)
Comment 4 Peter 2014-10-15 17:35:55 UTC
update:
It does print correctly if you enforce rasterization.

As okular does not "remember" to enforce rasterization, I still would consider this a problem that should be adressed.
Comment 5 Burkhard Lück 2014-10-15 18:35:49 UTC
(In reply to Peter from comment #4)
> update:
> It does print correctly if you enforce rasterization.
> 
Force rasterization was not enabled, when I printed your attachment
Comment 6 Albert Astals Cid 2014-10-15 19:39:06 UTC
Does it show in the print preview?
Comment 7 Peter 2014-10-19 11:20:52 UTC
Yes the umlauts are visible in the print preview of okular.
Comment 8 Albert Astals Cid 2014-10-27 21:41:23 UTC
If you run this on the command line
 pdftops myfile.pdf
 gs myfile.ps
do you see them umlauts?
Comment 9 Peter 2014-11-07 20:34:03 UTC
@Albert 
Where should you see umlauts?
I just get to the gs shell when typing
gs myfile.ps

I am just a little bit confused how to use this. Sorry.
-----------------------
Additional info:
This bug does not happen with Ubuntu 14.10 and Debian testing, but it does occur in Fedora 20 and 21 Alpha.
Comment 10 Peter 2014-11-07 20:37:49 UTC
The umlauts are visible in the file created by pdftops, though.
Comment 11 Albert Astals Cid 2014-11-07 21:49:04 UTC
Well, gs myfile.ps should should a display with the document, no? Or you mean you don't know how to change page? I think it's with the enter.
Comment 12 Peter 2014-11-08 11:05:14 UTC
No, gs does not open any window.
However, I installed GNU gv.
When running it, it displays the following error:

Unknown device: x11
Unrecoverable error: syntaxerror in --nostringval--
Operand stack:
    defaultdevice
Unrecoverable error: undefined in .uninstallpagedevice
Operand stack:
    defaultdevice

Error: PostScript interpreter failed in main window. 

It looks like gs on Fedora is built without X11 support.
Comment 13 Peter 2014-11-08 11:58:34 UTC
I now tested it with Fedora 21.
gs <file> shows the umlauts.
Printing the file with okular does not print them.

Also, I compiled pdttops 0.26.5 from source, added the bins to the PATH
(so that pdftops -v showed it was 0.26.5), run okular and the umlauts were still missing in the printed file,
Comment 14 Albert Astals Cid 2014-11-08 14:44:03 UTC
If gs shows the umlauts, i'd say your printing drivers are wrong, the only thing we do is send that .ps file to the printer, from there it's not something we can control.
Comment 15 Christoph Feck 2014-11-16 11:18:50 UTC
Resolving according to comment #14. If you have new information, please add a comment.