🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #3624

Re: Landscape page orientation

#3624
From: Jef Poskanzer
Date: Sat, 10 Nov 1990 04:43
29 lines
1789 bytes
In the referenced message, Gisle.Aas@nr.no wrote:
}In article <21532@well.sf.ca.us> jef@well.sf.ca.us (Jef Poskanzer) writes:
}   In the referenced message, Gisle.Aas@nr.no wrote:
}   }To get the right pageheight/width you have to add together ury/x and
}   }lly/x.  The clippath defines an area smaller than the physical page.
}
}   You're saying I should add instead of subtracting?  That doesn't
}   make sense to me.  Could you be more specific?  Provide corrected code
}   perhaps?
}
}As far as I can see the following code is correct, but it depends on
}the clippath being centered on the physical page:
		    ^^^^^^^^

Ok, I get it now.  You're not really adding two coordinates, which would
of course be silly.  What you're actually doing is interpreting the llx
and lly coordinates as distances -- the distance that the imaging area is
offset inwards from all sides of the physical page.  Then adding the margin
distances to the urx and ury imaging coordinates gets you the urx and ury
physical coordinates -- assuming, as you say, that the imaging region is
centered.

I'll change my code, and add a big comment crediting this disgusting hack
to you...
---
Jef

  Jef Poskanzer  jef@well.sf.ca.us  {ucbvax, apple, hplabs}!well!jef
                     Safe when taken as directed.
Technical Details
Message-ID: <21583@well.sf.ca.us>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!gatech!psuvax1!julius.cs.uiuc.edu!apple!well!jef
References: <AAS.90Nov9084937@boeygen.nr.no>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!gatech!psuvax1!julius.cs.uiuc.edu!apple!well!jef
From: jef@well.sf.ca.us (Jef Poskanzer)
Newsgroups: comp.lang.postscript
Subject: Re: Landscape page orientation
Message-ID: <21583@well.sf.ca.us>
Date: 10 Nov 90 04:43:28 GMT
References: <AAS.90Nov9084937@boeygen.nr.no>
Reply-To: Jef Poskanzer <jef@well.sf.ca.us>
Organization: Paratheo-Anametamystikhood Of Eris Esoteric, Ada Lovelace Cabal
Lines: 29