Bug 229556 - okular totally confused without %%Page:
Summary: okular totally confused without %%Page:
Status: RESOLVED UPSTREAM
Alias: None
Product: okular
Classification: Applications
Component: PS backend (show other bugs)
Version: unspecified
Platform: openSUSE Unspecified
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
: 23970 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-03-05 15:39 UTC by Tristan Miller
Modified: 2012-10-18 06:07 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tristan Miller 2010-03-05 15:39:38 UTC
Version:            (using KDE 4.4.1)
Installed from:    openSUSE RPMs

Okular displays only the last page of PostScript files which lack a %%Page: comment.

Reproducibility: Always

Steps to reproduce:
1. $ ls -l /usr/bin | enscript -p ls.ps
2. $ grep -v '^%%Page' ls.ps > ls-nopage.ps
3. $ okular ls-nopage.ps

Observed behaviour:
4. Okular displays only the last page of ls-nopage.ps.

Expected behaviour:
4. Okular should have displayed all the pages of ls-nopage.ps, the same way it does when it displays ls.ps.

Note that this was previously reported for kghostview as Bug 23970.
Comment 1 Tristan Miller 2010-03-05 15:42:04 UTC
Oh, and note that this isn't a contrived example—there are published PostScript files out there in the wild which lack %%Page: comments.
Comment 2 Pino Toscano 2010-03-05 16:01:08 UTC
This is a bug of the library we use for reading PostScript files, called libspectre.

https://bugs.freedesktop.org/show_bug.cgi?id=17241
Comment 3 Adrián Chaves (Gallaecio) 2012-10-18 06:07:07 UTC
*** Bug 23970 has been marked as a duplicate of this bug. ***