Article View: adobe.scripting.indesign
Article #19940Re: Rotate an Image before it's placed in a frame
From: Peter Boctor
Date: Thu, 07 Nov 2002 00:21
Date: Thu, 07 Nov 2002 00:21
9 lines
1617 bytes
1617 bytes
Bill, As Dave indicated you can ask for PageItems collection of the frame and get the image which you can inspect to determine if it is portrait. However if you do this in the UI: Place an image into a frame where one is portrait and the other landscape, then you rotate the image to match the frame, then you do a Fitting operation like Fit Proportionally, you'll notice that the UI will essentially ignore the rotation. You will face the same issue from scripting. So in the end you'll either have to rotate the images before you place them into InDesign, or you'll have to do the fitting and centering operations yourself, which I imagine isn't terribly hard, but would involve some math. -peter
Technical Details
Message-ID:
<1de6787c.6@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-04!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!news-out.nuthinbutnews.com!propagator2-sterling!news-in-sterling.newsfeed.com!news-in.nuthinbutnews.com!news.stealth.net!news.stealth.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de6787c.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,c75f4790dbc2b62 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2002-11-06 16:38:07 PST From: "Peter Boctor" <peter.boctor@adobe.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-04!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!news-out.nuthinbutnews.com!propagator2-sterling!news-in-sterling.newsfeed.com!news-in.nuthinbutnews.com!news.stealth.net!news.stealth.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: Rotate an Image before it's placed in a frame Message-ID: <1de6787c.6@WebX.la2eafNXanI> Date: Wed, 6 Nov 2002 16:21:32 -0800 References: <1de6787c.-1@WebX.la2eafNXanI> Lines: 17 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit