🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #6607

Re: number of pages

#6607
From: EG Keizer
Date: Fri, 08 Jan 1993 08:48
23 lines
1559 bytes
bo@hubcap.clemson.edu (Bo Slaughter) writes:

>I need a program (piece of code, or whatever) that can read in a
>postscript document and print out the number of pages that WOULD 
>be printed if it were sent to the printer.

The only way to get an indication of the number of pages to be printed
is by using another PostScript interpreter. It will never be more then
an indication. There are two reasons for this:
1. Several applications produce printer dependent code. A malicious user
   might prefix his/her PostScript file with code to check whether the
   PostScript is really executed on the printer itself, and if so set
   the #copies to 100. Sending that PostScript to another interpreter
   would result in an indication that is a hundred times too low.
2. If the system administrator happens to be standing next to the printer
   and notices something odd, he/she may abort the print job. This external
   factor may greatly reduce the number of pages printed.

-- 
Ed Keizer					tel: +31 20 548 5777
Faculteit Wiskunde & Informatika		fax: +31 20 642 7705
Vrije Universiteit				e-mail: keie@cs.vu.nl
De Boelelaan 1081A, 1081 HV  Amsterdam, The Netherlands
Technical Details
Message-ID: <C0J1tE.H91@cs.vu.nl>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sun4nl!star.cs.vu.nl!keie
References: <1993Jan6.163958.27417@hubcap.clemson.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.postscript
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sun4nl!star.cs.vu.nl!keie
From: keie@cs.vu.nl (EG Keizer)
Subject: Re: number of pages
Message-ID: <C0J1tE.H91@cs.vu.nl>
Sender: news@cs.vu.nl
Organization: Fac. Wiskunde & Informatica, VU, Amsterdam
References: <1993Jan6.163958.27417@hubcap.clemson.edu>
Date: Fri, 8 Jan 1993 08:48:49 GMT
Lines: 23