Created attachment 64691 [details] Screenshot of print preview window Version: unspecified (using KDE 4.7.2) OS: Linux When compiled without libspectre print preview produces a window with the postscript code. Reproducible: Didn't try Steps to Reproduce: 1. Compile okular without libspectre 2. Open pdf file 3. File / Print Preview Actual Results: A window showing postscript code Expected Results: Some rendered image, or an error message if its not possible to render image.
I am afraid there is not much we can do here. The code asks for a Kpart that is able to show postscript and Kate says "hey, i can do that" so if the okular part is missing the kate part is loaded. I'm adding Alex and John here since they are the ones that did the code in case they can add some ideas
Git commit 4c4825a2a8aa33297d591150cf26cfd3119cbba7 by Luigi Toscano. Committed on 11/05/2014 at 14:31. Pushed by ltoscano into branch 'KDE/4.13'. Print preview: explicitly look for the Okular/Ghostview part No other parts which renders PostScript are available at the moment, and parts which handles them are return "unexpected" resultS (e.g. katepart: PostScript source code). Reviewed by: Albert Astal Cid FIXED-IN: 4.13.2 M +5 -1 ui/fileprinterpreview.cpp http://commits.kde.org/okular/4c4825a2a8aa33297d591150cf26cfd3119cbba7