home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / postscri / 6409 < prev    next >
Encoding:
Internet Message Format  |  1993-01-22  |  1.8 KB

  1. Path: sparky!uunet!spool.mu.edu!uwm.edu!daffy!uwvax!astroatc!vidiot!brown
  2. From: brown@vidiot.UUCP (Vidiot)
  3. Newsgroups: comp.lang.postscript
  4. Subject: Re: Page accounting
  5. Keywords: postscript, page, accounting
  6. Message-ID: <4817@vidiot.UUCP>
  7. Date: 22 Jan 93 06:21:53 GMT
  8. References: <86579@ut-emx.uucp>
  9. Reply-To: brown@vidiot.UUCP (Vidiot)
  10. Organization: Vidiot's Hangout
  11. Lines: 27
  12.  
  13. In article <86579@ut-emx.uucp> tai@utpapa.ph.utexas.edu (Tai Morris) writes:
  14. <I'm new to this newsgroup so I hope this question hasn't been answered
  15. <too many times already...
  16. <
  17. <I need a program that parses a postscript file to see how many pages will
  18. <be printed. Please don't tell me this is impossible - it's impossible that
  19. <it is impossible because postscript printers know how to parse postscript
  20. <files. Otherwise, the printer could be fooled, too.
  21.  
  22. You are right in that this question gets asked and answered ALL the time.
  23.  
  24. The only program that can give you an accurate count of pages for ALL types
  25. of PostScript files is a PostScript interpreter...yep, the PostScript printer.
  26. The only other method is to use GhostScript, another PostScript interpreter.
  27. I believe someone has some kind of post processing that will get the final
  28. page count from GhostScript.
  29.  
  30. In other words, you just can't "look" at the file and find the magical page
  31. count buried within ALL types of PostScript files.
  32.  
  33. BTW, in theory, one could write a piece of PostScript code that would print
  34. pages until the power failed.  You'll never get a page count from that program.
  35. -- 
  36.       harvard\                          spool.cs.wisc.edu!astroatc!vidiot!brown
  37. Vidiot  ucbvax!uwvax..........!astroatc!vidiot!brown
  38.       rutgers/            INTERNET:vidiot!brown%astroatc.UUCP@spool.cs.wisc.edu
  39.                                    brown@wi.extrel.com
  40.