Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.postscript > #2283

Re: Getting progress data update from Ghostscript

Newsgroups comp.lang.postscript
Date 2015-05-22 05:11 -0700
References <11365feb-899b-42fa-bbbe-2cb9c96b93b0@googlegroups.com> <MPG.2fc924afd41e32af9898fd@usenet.plus.net>
Message-ID <403fa89e-af00-4fc0-ad71-a1de09dffafc@googlegroups.com> (permalink)
Subject Re: Getting progress data update from Ghostscript
From Peter C <kkchan7440@gmail.com>

Show all headers | View raw


> There is no way to do this because the interpreter itself doesn't know. 
> THere ar things you can do though
> 
> 1) PostScript is delivered as a stream of bytes, the interpreter cannot 
> tell how far through a strema it is, because it doens't know how big the 
> input is.

Initially I am thinking of getting progress data from driver side, for example a TIFF or PNG driver. Using image height as an percentage measurement but that does not include interpretation time. 

> 2) Unless the input file is DSC compliant, there is no way to tell how 
> many pages a PostScript program will render. (and even files whch claim 
> to be DSC-compliant are often lying).
> 
> 				Ken

Yes, postscript will be rather tricky to get page count. PDF should be doable.

BTW is there any discussion group about ghostscript code modification or enhancement.

Back to comp.lang.postscript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Getting progress data update from Ghostscript Peter C <kkchan7440@gmail.com> - 2015-05-22 02:04 -0700
  Re: Getting progress data update from Ghostscript ken <ken@spamcop.net> - 2015-05-22 12:35 +0100
    Re: Getting progress data update from Ghostscript Peter C <kkchan7440@gmail.com> - 2015-05-22 05:11 -0700
      Re: Getting progress data update from Ghostscript ken <ken@spamcop.net> - 2015-05-22 15:15 +0100

csiph-web