🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.ghostscript.bug
Article #582

Finding the total pages of a PS file.

#582
From: Steve Wu
Date: Thu, 07 Jan 1993 18:02
16 lines
1086 bytes
  I am writing a small ps code to find the total page number for any
ps file. I am thinking to add a counter in showpage command and it
doesn't work right. (I put /totalpageno 1 totalpageno add def inside
the showpage definition, and put /totalpageno 0 def inside run).

  Has anyone done this before?

  Thanks for your help.

  steve

--
stevew@helios.unl.edu  |=| \ Fender / |=| ... smoke on the water, fire in
                       |=|   \    /   |=| the sky...   Smoke on the water.
stevew@hoss.unl.edu    |=|     \/     |=|     (36 bars guitar solo)
		      Deep purple, the best
Technical Details
Message-ID: <1ihr6tINNkeh@crcnis1.unl.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!paladin.american.edu!howland.reston.ans.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!helios.unl.edu!stevew

Show Full Headers
Complete Article Headers
Newsgroups: gnu.ghostscript.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!paladin.american.edu!howland.reston.ans.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!helios.unl.edu!stevew
From: stevew@helios.unl.edu (Steve Wu)
Subject: Finding the total pages of a PS file.
Message-ID: <1ihr6tINNkeh@crcnis1.unl.edu>
Sender: gnulists@ai.mit.edu
Organization: University of Nebraska--Lincoln
Distribution: gnu
Date: Thu, 7 Jan 1993 18:02:05 GMT
Approved: bug-ghostscript@prep.ai.mit.edu
Lines: 17