Article View: comp.lang.postscript
Article #5696Re: Finding out the real page counter.
From: Sean Lamont
Date: Tue, 17 Nov 1992 08:59
Date: Tue, 17 Nov 1992 08:59
29 lines
1419 bytes
1419 bytes
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
Technical Details
Message-ID:
<1992Nov17.085912.5254@u.washington.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!ogicse!news.u.washington.edu!phylo.genetics.washington.edu!zenoReferences:
<2600@irit.irit.fr>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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