Bug 204735 - Okular only showing last page of fax converted to postscript
Summary: Okular only showing last page of fax converted to postscript
Status: RESOLVED UPSTREAM
Alias: None
Product: okular
Classification: Applications
Component: PS backend (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-22 08:07 UTC by dag
Modified: 2009-08-22 15:24 UTC (History)
0 users

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 dag 2009-08-22 08:07:39 UTC
Version:            (using KDE 4.3.0)
Compiler:          gcc 4.3.3 
OS:                Linux
Installed from:    Compiled From Sources

Hi,

Using okular to view a multipage fax converted to postscript by the utility fax2ps from the tiff package only shows the last page of the result. Kghostview ans gs show all pages nicely. I tried to grab the newest versions of libspectre (0.2.2) and libgs (8.70), but this didn't help. I have some other multipage documents that shows up fine. The main difference seems to be that the failing document has a header with the line: "%%Pages: (atend)" and then in the Trailer the real number of pages. The document that works has the total number of pages right in the header.
Comment 1 dag 2009-08-22 08:27:30 UTC
Tried to hand edit the PS document with trouble to find out more about the problem:
The result was that it has nothing to do with the "atend", but with the fact that each page has it's own header. Especially removing the line "%!PS-Adobe-3.0" from the beginning of the additional pages made okular recognize the multiple page layout. Seems like this line resets the okular page count somehow.
Comment 2 Pino Toscano 2009-08-22 15:24:57 UTC
Hi,

Okular uses the libspectre library to open and render PostScript documents, so you should report the problem to libspectre's bug tracking system, at https://bugs.freedesktop.org, "libspectre" product.

Thanks.