🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #20123

Fiiting Image in Rectangle

#20123
From: Hans van Leeuwen
Date: Mon, 04 Nov 2002 10:18
23 lines
1678 bytes
Hello, 

I am new in this world of scripting and I am trying to automate a series of tasks with a script. 

I have the following problem, I open a document and create a rectangle on a page. I place an image in that rectangle 
 and have to Fit it proportionally. The last part I am not able to do. 
What is wrong in the following script ?? 

Rem add a new rectangle and give it a name 
Set myRectangle = myDocument.Pages.Item(myCounter).Rectangles.Add 
Rem add sizes an place (for this file I needed landscape orientation) 
myRectangle.GeometricBounds = Array("43.5mm", "-43.5mm", "253.5mm", "253.5mm") 
Rem name of the file to load 
myFile = "C:\Kiggen\cd01_004.tif" 
Set myImage = myRectangle.Place(myFile) 
Rem Fit it in Rectangle 
myRectangle.Fit idProportionally 
Rem rotate it in portrait position 
myRectangle.RotationAngle = 90 

All ideas are more then welcome ;-)) 

Hans
Technical Details
Message-ID: <1de6718c.-1@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,86a2a3e708b3fb7a,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2002-11-04 02:48:06 PST
From: "Hans van Leeuwen" <info@vlas.info>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Fiiting Image in Rectangle
Message-ID: <1de6718c.-1@WebX.la2eafNXanI>
Date: Mon, 4 Nov 2002 02:18:42 -0800
Lines: 26
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit