On Tue, 27 Feb 2007, Shachar Shemesh wrote:

Peter wrote:
Ghostview (gv) does almost exactly what you need. Take a look at how
it works. It uses gs for rendering.
Yeah, I know. gv doesn't do anything simple. It pretty much takes the
input file apart (assuming I understood what it does correctly).

Look, PS 'renders' pages in batches. The limits of a batch are usually at 'showpage'. Then and only then does gs output things. showpage is a PS command and it can be 'extended' easily by redefining it. The interpreter should pause at each page with -dNOPAUSE, exactly after showpage (or rather, inside it).

I don't know how gv pages backwards, it is possible that it saves state and 'redoes' previous pages although I am not sure of this. gv does not have a huge memory footprint even when rendering 200+ page documents and it is very fast. So there must be a way. Imho get the source and take a peek.

Peter

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to