Link to home
Start Free TrialLog in
Avatar of evansong
evansong

asked on

question about printing the total pagecount on the separator page

I am trying to print a total page counts on the separator page (.SEP file).
What code will allow me to print this counts?  Any suggestion?

Thank you,

Evan
ASKER CERTIFIED SOLUTION
Avatar of hdhondt
hdhondt
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of evansong
evansong

ASKER

Hi hdhondt,

WOW, it works like a charm.  And yes, it does not print the total number of pages the printer just printed.  Is there a way to know how many pages are in que?? and then print that in separator page?

Evan
No, the printer does not know how many pages are in the queue. Without parsing the entire PostScript file, the server does not know either. If you did that you could extract the page count and pass it on to the separator page.

Some printers have hardware counters that give a more accurate idea of the real number of pages printed to date. These may or may not be accessible from PostScript. Some printers also have built-in job logging, where the printer stores the user name, file name, etc as well as the number of pages & page size for each job. Xerox printers usually have this feature - you access it by pointing your web browser at the printer's IP address.
Some utilities like GhostScript (freeware) can tell you how many pages are in the job. However, using Windows, the problem is to interface this with the print spooler. If you were running unix it would probably not be very difficult to get GhostScript to write the number of pages to a file (or a pipe) and include the result on a separator page. It would of course impact total system performance as the server has to parse every print job from start to finish in order to compute the number of pages.

There are also (expensive) print management software packages that will do this.
No comment has been added to this question in more than 21 days, so it is now classified as abandoned..
I will leave a recommendation in the Cleanup topic area that this question is:
Accept hdhondt
Any objections should be posted here in the next 4 days. After that time, the question will be closed.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

hdhondt
EE Cleanup Volunteer