Bug 284428 - When compiled without libspectre print preview displays the postscript code
Summary: When compiled without libspectre print preview displays the postscript code
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.19.60
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-19 06:21 UTC by alancio
Modified: 2014-05-11 14:33 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.13.2


Attachments
Screenshot of print preview window (158.29 KB, image/png)
2011-10-19 06:21 UTC, alancio
Details

Note You need to log in before you can comment on or make changes to this bug.
Description alancio 2011-10-19 06:21:21 UTC
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.
Comment 1 Albert Astals Cid 2011-10-19 11:40:25 UTC
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
Comment 2 Luigi Toscano 2014-05-11 14:33:09 UTC
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