home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / postscri / 5564 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  1.3 KB

  1. Path: sparky!uunet!ogicse!news.u.washington.edu!phylo.genetics.washington.edu!zeno
  2. From: zeno@phylo.genetics.washington.edu (Sean Lamont)
  3. Newsgroups: comp.lang.postscript
  4. Subject: Re: Finding out the real page counter.
  5. Message-ID: <1992Nov17.085912.5254@u.washington.edu>
  6. Date: 17 Nov 92 08:59:12 GMT
  7. Article-I.D.: u.1992Nov17.085912.5254
  8. References: <2600@irit.irit.fr>
  9. Sender: news@u.washington.edu (USENET News System)
  10. Organization: University of Washington, Seattle
  11. Lines: 29
  12.  
  13. In article <2600@irit.irit.fr> stolte@irit.irit.fr (Nilo STOLTE) writes:
  14. >Hi antoon!
  15. >You say:
  16. >...
  17. >>>problem. (I.e. a program that determines the number of pages in a any
  18. >>>given PS-file)
  19. >
  20. >  Simply count the number of "%%Page:" that there is in your PostScript file. You
  21. >can write easily a program to do that...
  22.  
  23. this is assuming that the document follows proper DSC. Consider the following
  24.  
  25. %!PS
  26. /Helvetica findfont 20 scalefont setfont
  27. 100 100 moveto (spam) show
  28. showpage
  29.  
  30. This has no instances of %Page in the document, and yet it will print on
  31. 99% of the valid postscript devices out there.
  32.  
  33.  
  34.  
  35.  
  36.  
  37. -- 
  38. Sean T. Lamont                           |   "Don't oppress me, It's
  39. zeno@genetics.washington.edu             |    'computer of color!' "
  40. lamont@abstractsoft.com                  |_______________________________
  41. Abstract Software                                                         
  42.