🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.postscript.programming
Article #992

Placing a text line on ,ps pages

#992
From: Donald Volent
Date: Wed, 14 May 2003 17:18
35 lines
2044 bytes
Gentlemen and Mesdames,

we had success in placing a text line on .ps pages for .ps files compiled under Adobe 4.0. We subsequently began to use .ps files compiled under Adobe 5.0. These new compiled forms do not work with the same code (No text line gets inserted). Barring the text being invisible because it's off the page, it seems that these new compiled forms do not behave in the same way as the old ones that worked with the code. Is there something new that we must consider for these new forms?

The code is:

/PageCount {1} def
/NumberOfPages {8} def
/OmrShow/showpage load def
/PrintPsOmr {4825 .3 moveto (OMR MARK
   GOES HERE) gsave initmatrix
   SetTheFont 270 rotate show grestore}
   def
/PrintLastPsOmr {4825 .3 moveto (LAST
   OMR MARK GOES HERE) gsave initmatrix
   SetTheFont 270 rotate show grestore}
   def
/SetTheFont {/Courier findfont 11
   scalefont setfont} def
/IncrementPageCount {/PageCount
   PageCount 1 add store} store
/showpage {NumberOfPages NumberOfPages
   eq NumberOfPages NumberOfPages eq
   and {PrintLastPsOmr} {PrintPsOmr}
   ifelse OmrShow IncrementPageCount}
   def

(Note: NumberOfPages of pages is a
        variable stub that I'll be
        replacing with something else,
        but the mechanics are the same)

Thanks for all your feedback,

Don Volent
Technical Details
Message-ID: <1de92060.-1@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!hermes.visi.com!news-out.visi.com!petbe.visi.com!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10c61a,9f78fedaa2fde6b5,start
X-Google-Attributes: gid10c61a,public
X-Google-ArrivalTime: 2003-05-14 10:38:33 PST
From: "Donald Volent" <dvolent@thig.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!hermes.visi.com!news-out.visi.com!petbe.visi.com!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.postscript.programming
Subject: Placing a text line on ,ps pages
Message-ID: <1de92060.-1@WebX.la2eafNXanI>
Date: Wed, 14 May 2003 10:18:09 -0700
Lines: 41
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit