Article View: adobe.scripting.indesign
Article #93321_Calculating Geometric Bounds
From: Karthik_ind
Date: Tue, 05 Sep 2006 11:01
Date: Tue, 05 Sep 2006 11:01
27 lines
1334 bytes
1334 bytes
Hi All,
I want to draw a textframe in page number 3 with the following VB script.
Set myind = CreateObject("InDesign.Application.CS2")
Set mydoc = myind.ActiveDocument
Set mypage = mydoc.Pages(3)
Set mytf = mypage.TextFrames.Add
mytf.Contents = "Hello"
GB = mytf.GeometricBounds
GB(0) = 10
GB(1) = 10
GB(2) = 20
GB(3) = 20
mytf.GeometricBounds = GB
After running this script the textframe is drawn in page number 2.
This is caused due to geometricbounds calculation?
Does Indesign calculate the geometricbounds for each spread left side?
What can I do for calculate the geometricbounds for each page left side?
If anybody have an idea please help me.
Karthik
Technical Details
Message-ID:
<3bc188eb.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!tudelft.nl!txtfeed1.tudelft.nl!feeder.news-service.com!newsfeed.freenet.de!news.albasani.net!news.buerger.net!news.isoc.lu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,446d0c4e6ab0573e,start X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: Karthik_ind <sastha505@yahoo.com> Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!tudelft.nl!txtfeed1.tudelft.nl!feeder.news-service.com!newsfeed.freenet.de!news.albasani.net!news.buerger.net!news.isoc.lu!webcrossing Newsgroups: adobe.scripting.indesign Subject: 1_Calculating Geometric Bounds Message-ID: <3bc188eb.-1@webcrossing.la2eafNXanI> Date: Tue, 5 Sep 2006 04:01:40 -0700 Lines: 29 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit