home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ogicse!news.u.washington.edu!phylo.genetics.washington.edu!zeno
- From: zeno@phylo.genetics.washington.edu (Sean Lamont)
- Newsgroups: comp.lang.postscript
- Subject: Re: Finding out the real page counter.
- Message-ID: <1992Nov17.085912.5254@u.washington.edu>
- Date: 17 Nov 92 08:59:12 GMT
- Article-I.D.: u.1992Nov17.085912.5254
- References: <2600@irit.irit.fr>
- Sender: news@u.washington.edu (USENET News System)
- Organization: University of Washington, Seattle
- Lines: 29
-
- In article <2600@irit.irit.fr> stolte@irit.irit.fr (Nilo STOLTE) writes:
- >Hi antoon!
- >You say:
- >...
- >>>problem. (I.e. a program that determines the number of pages in a any
- >>>given PS-file)
- >
- > Simply count the number of "%%Page:" that there is in your PostScript file. You
- >can write easily a program to do that...
-
- this is assuming that the document follows proper DSC. Consider the following
-
- %!PS
- /Helvetica findfont 20 scalefont setfont
- 100 100 moveto (spam) show
- showpage
-
- This has no instances of %Page in the document, and yet it will print on
- 99% of the valid postscript devices out there.
-
-
-
-
-
- --
- Sean T. Lamont | "Don't oppress me, It's
- zeno@genetics.washington.edu | 'computer of color!' "
- lamont@abstractsoft.com |_______________________________
- Abstract Software
-