bug-ghostscript
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Page count


From: Marc J. Miller
Subject: Page count
Date: Mon, 05 Mar 2001 16:29:49 -0800

For those of us using ghostscript as a print filter and who also do page
accounting, it would be really handy to be able to retrieve the number
of pages in the file as it passes through.  It seems like it would be an
easy task since Ghostscript already has to figure out where the page
breaks are when it displays the file.  But I'm afraid I'd have to spend
a week looking for the right location to add that code and I simply
don't have that kind of time.  I graduate in two weeks and I was hoping
to have this resolved before I graduate and leave behind this student
position.

Or maybe that's already in there somewhere... if so, could someone point
me in the right direction?

Another nicity would be autodetection of this feature... for example,
the PPR print queue (http://ppr.trincoll.edu) uses adds the statement:

statusdict /pagecount get exec ==

to the PostScript as it goes through to retrieve the number of sheets
printed.  In the documentation for a commercial PCL compiler, I read
that there is a page count procedure, so it would be ideal if the PCL 5
based driver (ljet4) could grab that information and pass it back.  But
that's an ideal.  If Ghostscript can figure that out on its own, that
would be fine.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]