Path: 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: Reply-To: Jef Poskanzer Organization: Paratheo-Anametamystikhood Of Eris Esoteric, Ada Lovelace Cabal Lines: 29 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.