🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #3565

Re: Landscape page orientation

#3565
From: Jef Poskanzer
Date: Tue, 06 Nov 1990 05:59
24 lines
1283 bytes
In the referenced message, lee@sq.sq.com (Liam R. E. Quin) wrote:
}woody@chinacat.Unicom.COM (Woody Baker @ Eagle Signal) claims that
}> The generic way to do landscape is
}> 612 0 translate 90 rotate. 
}
}This is not in the least generic!
}You could do
}/PaperWidth 72 8.5 mul cvi def % width of a page in PostScript points
}PaperWidth 0 translate 90 rotate
}though, and that's much better.

Looks the same to me.  If you really want to avoid paper-size dependencies,
try something like this:

newpath clippath pathbbox newpath	% llx lly urx ury
3 -1 roll				% llx urx ury lly
sub					% llx urx height
/pageheight exch def			% llx urx
exch sub				% width
/pagewidth exch def
pagewidth 0 translate 90 rotate

  Jef Poskanzer  jef@well.sf.ca.us  {ucbvax, apple, hplabs}!well!jef
     "I like a man who grins when he fights." -- Winston Churchill
Technical Details
Message-ID: <21504@well.sf.ca.us>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!fernwood!apple!well!jef
References: <1990Nov5.194437.12060@sq.sq.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!fernwood!apple!well!jef
From: jef@well.sf.ca.us (Jef Poskanzer)
Newsgroups: comp.lang.postscript
Subject: Re: Landscape page orientation
Message-ID: <21504@well.sf.ca.us>
Date: 6 Nov 90 05:59:35 GMT
References: <1990Nov5.194437.12060@sq.sq.com>
Reply-To: Jef Poskanzer <jef@well.sf.ca.us>
Organization: Paratheo-Anametamystikhood Of Eris Esoteric, Ada Lovelace Cabal
Lines: 24