🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.postscript.programming
Article #1014

Re: Number of Pages in a .ps file

#1014
From: Donald Volent
Date: Wed, 28 May 2003 12:08
7 lines
1443 bytes
P.S. -I ended up doing this by defining the number of pages within the .ps file itself, right after the initial comments, like so:

/NumberOfPages {17} def

Since, I can "touch" these .ps files, this is easier than attaching the page count to the external file, as I would then have to parse to find it.

Also, by reinitializing NumberOfPages to 1 after each call, I don't have to "touch" any .ps file with less than 3 pages (Since I'm actually looking for odd pages, which would be the face-up sides of a duplexed set -which is where I want to place the OMR marks).
Technical Details
Message-ID: <1de93cb1.5@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!206.252.192.28.MISMATCH!news.stealth.net news.stealth.net!news.stealth.net!newsfeed.icl.net!newsfeed.fjserv.net!lnewspeer00.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de93cb1.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10c61a,874e20564ac3d3db
X-Google-Attributes: gid10c61a,public
X-Google-ArrivalTime: 2003-05-28 05:38:10 PST
From: "Donald Volent" <dvolent@thig.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!206.252.192.28.MISMATCH!news.stealth.net news.stealth.net!news.stealth.net!newsfeed.icl.net!newsfeed.fjserv.net!lnewspeer00.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.postscript.programming
Subject: Re: Number of Pages in a .ps file
Message-ID: <1de93cb1.5@WebX.la2eafNXanI>
Date: Wed, 28 May 2003 05:08:43 -0700
References: <1de93cb1.-1@WebX.la2eafNXanI>
Lines: 13
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit