🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #14583

Re: Help, Images in rectangles and lines.

#14583
From: Olav_Kvern
Date: Thu, 22 Jan 2004 20:15
21 lines
1496 bytes
Roel--

The problem is in the way that InDesign determines which page "owns" the rectangle. When you tell a page to add a rectangle, its left edge is at 0. This means that half of its stroke *touches* the left-hand page of the spread. To InDesign, that means that the rectangle is owned by that page, and that any measurements are based on that page.

To avoid this problem, always perform a slight relative move after you tell a page to add a graphic item:



Set myImg = myPage.Rectangles.Add 
Rem Move has two parameters, MoveTo and MoveBy. 
Rem (Sadly, MoveTo, the first parameter, is currently broken 
Rem for PageItems in all languages other than AppleScript.) 
Rem Use a comma to omit the MoveTo parameter: 
myImg.Move , Array("1p", "1p") 
myImg.GeometricBounds = Array(mtop, mleft, mbottom, mright)

Does that make sense?

Thanks,

Ole
Technical Details
Message-ID: <2ccf8213.2@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx
References: <2ccf8213.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,7a98ef87fd93c4c7
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2004-01-22 12:38:44 PST
From: Olav_Kvern@adobeforums.com
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: Re: Help, Images in rectangles and lines.
Message-ID: <2ccf8213.2@webx.la2eafNXanI>
Date: Thu, 22 Jan 2004 12:15:58 -0800
References: <2ccf8213.-1@webx.la2eafNXanI>
Lines: 23
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit