home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.ghostscript.bug
- Path: sparky!uunet!paladin.american.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!aladdin.COM!ghost
- From: ghost@aladdin.COM (L. Peter Deutsch)
- Subject: /undefined in Top
- Message-ID: <9212232018.0.UUL1.3#5127@aladdin.com>
- Sender: gnulists@ai.mit.edu
- Organization: GNUs Not Usenet
- Distribution: gnu
- Date: Thu, 24 Dec 1992 03:18:37 GMT
- Approved: bug-ghostscript@prep.ai.mit.edu
- Lines: 32
-
- Re <9212240258.AA01126@raisin-nut>
- <1992Dec23.143858.29137@ramon.bgu.ac.il>:
-
- > Here is the file I had problem with.
- > Ghostscript wrote me :
- > /undefined in Top
-
- The problem is in this section of the file:
-
- > /Top systemdict /languagelevel known
- > {systemdict /languagelevel get 2 eq}{false} ifelse {
- > currentpagedevice /PageSize get 1 get Margin sub
- > } {
- > {statusdict /paperheight get} stopped {11.0 72 mul} if Margin sub
- > } ifelse
- > def
-
- If the file is not running in a Level 2 system, and statusdict does
- not contain an entry for paperheight, the `get' on the 5th line will
- cause an error. When control returns to the `stopped', the o-stack
- will still contain statusdict and /paperheight. As a result, the
- `def' winds up defining paperheight, not Top.
-
- This is a bug in the file, not in Ghostscript.
-
- L. Peter Deutsch :: Aladdin Enterprises :: P.O. box 60264, Palo Alto, CA 94306
- ghost@aladdin.com, ...decwrl!aladdin!ghost ; voice 415-322-0103 ; fax 322-1734
- "Implementation is the sincerest form of flattery."
-
-
-
-
-