Bug 689942 - GSview draws blank page when viewing next page on some files
Summary: GSview draws blank page when viewing next page on some files
Status: RESOLVED WONTFIX
Alias: None
Product: Artifex GSview
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: PC Windows 98
: P4 normal
Assignee: Russell Lang
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-04 12:02 UTC by goldart.geo
Modified: 2012-06-18 12:57 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description goldart.geo 2008-07-04 12:02:26 UTC
When viewing files such as alphabet.ps, colorcir.ps, escher.ps, grayalph.ps,
snowflak.ps, vasarely.ps, waterfal.ps from Ghostscript distribution, or
twopages.ps bundled with PSTOEDIT, Ghostscript returns message 'No more pages'
at status line when trying to view the contents of next page. When the message
is shown, the document window shows a completely blank page.

After the page goes blank, document window remains empty until the document is
reopened.
------------------------------------------------------------------------
Ghostscript version (or include output from "gs -h"): 8.62
------------------------------------------------------------------------
Where you got Ghostscript: Ghostscript.com
------------------------------------------------------------------------
Hardware system you are using (including printer model if the problem
involves printing):

Memory: 384MB
CPU: Intel Pentium II 400
Sound: ESS Solo-1
Video: Neomagic MagicMedia 256AV
------------------------------------------------------------------------
Operating system you are using: Windows 98SE
------------------------------------------------------------------------
Suggested fix, if any:

GSview must not draw blank pages when user tries to navigate beyond a document
that has no page information. For document with no or incomplete page
information, GSview should decide the number of pages a document contains by one
of following methods:

1. Calculate the pages based on the amount of canvas space the document
consumes, dependent on media size.
2. Assume it has only 1 page, with page size equal to the amount of canvas space
the document consumes.

Method 1 should be used for media with fixed canvas sizes, such as print. Method
2 should be used for media with variable canvas sizes, such as screen. GSview
should support both views when viewing a document.
Comment 1 Russell Lang 2012-06-18 12:57:22 UTC
GSview can't know if there is anything more to display in a non-DSC document until it tells ghostscript to continue from a showpage (which erases the page after display it), and ghostscript returns.

If the document had correct DSC comments, then GSview can do a much better job.