Article View: comp.lang.postscript
Article #6630Re: number of pages
From: Vidiot
Date: Sun, 10 Jan 1993 17:59
Date: Sun, 10 Jan 1993 17:59
23 lines
1389 bytes
1389 bytes
In article <1993Jan8.172822.12211@wavehh.hanse.de> cracauer@wavehh.hanse.de (Martin Cracauer) writes:
<bo@hubcap.clemson.edu (Bo Slaughter) writes:
<
<
<>Hopefully someone can point me in the right direction...
<
<>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.
<
<I an using:
<
<grep "Page: " | wc
If the PostScript file was DSC compliant, then "grep %%Pages:" would be
enough. If you get back nothing, then it was either a one page document
(where the %%Pages wasn't necessary) or it wasn't DSC compliant, which means
that the grep idea won't work.
--
harvard\ spool.cs.wisc.edu!astroatc!vidiot!brown
Vidiot ucbvax!uwvax..........!astroatc!vidiot!brown
rutgers/ INTERNET:vidiot!brown%astroatc.UUCP@spool.cs.wisc.edu
brown@wi.extrel.com
Technical Details
Message-ID:
<4749@vidiot.UUCP>Path:
arc1-ca.pugleaf.net!sparky!uunet!gatech!psuvax1!rutgers!uwvax!astroatc!vidiot!brownReferences:
<1993Jan6.163958.27417@hubcap.clemson.edu> <1993Jan8.172822.12211@wavehh.hanse.de>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!psuvax1!rutgers!uwvax!astroatc!vidiot!brown From: brown@vidiot.UUCP (Vidiot) Newsgroups: comp.lang.postscript Subject: Re: number of pages Message-ID: <4749@vidiot.UUCP> Date: 10 Jan 93 17:59:21 GMT References: <1993Jan6.163958.27417@hubcap.clemson.edu> <1993Jan8.172822.12211@wavehh.hanse.de> Reply-To: brown@vidiot.UUCP (Vidiot) Organization: Vidiot's Hangout Lines: 23