Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!decwrl!adobe!orthlieb From: orthlieb@adobe.COM (Carl Orthlieb) Newsgroups: comp.lang.postscript Subject: Re: Changing the size of a drawing Message-ID: <15312@adobe.UUCP> Date: 16 May 91 18:01:34 GMT References: <1991May14.165401.19685@mccc.edu> Reply-To: orthlieb@adobe.UUCP (Carl Orthlieb) Organization: Adobe Systems Incorporated, Mountain View Lines: 36 The best way to scale to the size you want is to look at the bounding box values of your graphic: %%BoundingBox:5 40 715 530 These represent the lower left and upper right coordinates of your graphic. This defines a rectange that is 710 x 490 points (where a point is 1/72"). You'll want to scale this down to a rectangle of 216 x 144 points (3" x 2"). Stick the following code at the top of the file: /MyScale { 216 710 div 144 490 div scale } bind def This will scale non-uniformly but ensures that the graphic is exactly 2" x 3". If you want to scale uniformly in the X direction: /MyScale { 216 710 div dup scale } bind def If you want to scale uniformly in the Y direction: /MyScale { 144 490 div dup scale } bind def You'll probably also want to translate the picture around on the page: X Y translate % Position on the page MyScale % Scale to desired size -5 -40 translate % Translate pic to lower left corner Where X and Y are expressed in 1/72 of an inch. If you want the resulting picture to be 1 inch from the left hand edge of the page and 2 inches from the bottom, then X = 72 and Y = 144. Hope this helps, Carl 8^)