Bug 689938 - GSview render page slowly after text search
Summary: GSview render page slowly after text search
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 11:55 UTC by goldart.geo
Modified: 2012-06-18 12:58 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 11:55:14 UTC
Symptoms:

After performing a text search for the first time after opening a document,
GSview redraws the entire document window. However, subsequent text searches,
even searching for different texts, does not cause GSview to redraw the entire
page if the text is in the same page as the one being viewed.
------------------------------------------------------------------------
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:

Considering GSview already has the text information when the document is loaded,
there is no reason for GSview to redraw the entire page, unless text is not in
the page being viewed.
Comment 1 Russell Lang 2012-06-18 12:47:47 UTC
The first time GSview searches for text, it stops displaying, unloads ghostscript, then reloads ghostscript and uses it to extract the text to a temporary index file.  It then reloads ghostscript to display the page with the found text.

Subsequent searches just search though the temporary index files.

To improve this would require some text extraction support built into ghostscript.
Comment 2 Ken Sharp 2012-06-18 12:58:52 UTC
(In reply to comment #1)
> The first time GSview searches for text, it stops displaying, unloads
> ghostscript, then reloads ghostscript and uses it to extract the text to a
> temporary index file.  It then reloads ghostscript to display the page with the
> found text.
> 
> Subsequent searches just search though the temporary index files.
> 
> To improve this would require some text extraction support built into
> ghostscript.

The text extraction device 'txtwrite' is available in recent versions of Ghostscript. It is still a separate device though.