Bug 229556

Summary: okular totally confused without %%Page:
Product: [Applications] okular Reporter: Tristan Miller <psychonaut>
Component: PS backendAssignee: Okular developers <okular-devel>
Status: RESOLVED UPSTREAM    
Severity: normal CC: ach
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Unspecified   
Latest Commit: Version Fixed In:

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. ***