pankaj.c getting geometric bounds of each textframe of each page
May 05, 2010; 03:58
pankaj.c
getting geometric bounds of each textframe of each page
Hi all,
I am trying to get the geometric bounds of each text frame of each page on whole document. Below is the snippet of my script. All seems to be fine earlier but as soon as I did some changes (and why I did) it seems I cannot iterate frames page by page and it sticts to 1st page instead of going on each page. Can anybody tell me what could possibly wrong:
// Error here var top_Bound = Text_FRAME.geometricBounds[0];
var myTotalPage = myDoc.pages.length;
//alert("Total Pages in current document is " +myTotalPage);
//var pageItems = myDoc.pages[k].allPageItems;
//alert ("All Page Items is "+ pageItems)
for (var i=0;i<=myTotalPage;i++)
{
var totalTextFrames = myDoc.pages[i].textFrames.length;
//alert ("Total Text Frames on page are "+ totalTextFrames)
for (var t=0;t<=totalTextFrames;t++)
{
var Text_FRAME = myDoc.pages[i].textFrames[t];
//getting error here
var top_Bound = Text_FRAME.geometricBounds[0];
var left_Bound = Text_FRAME.geometricBounds[1];
var bottom_Bound = Text_FRAME.geometricBounds[2];
var right_Bound = Text_FRAME.geometricBounds[3];
//alert ("My Top Bound is " +top_Bound);
//alert ("My left Bound is " +left_Bound);
//alert ("My Bottom Bound is " +bottom_Bound);
//alert ("My right Bound is " +right_Bound);
}
}
}
-- This list is a free service of LassoSoft: http://www.LassoSoft.com/ Search the list archives: http://www.ListSearch.com/InDesign/Browse/ Manage your subscription: http://www.ListSearch.com/InDesign/
May 05
Robert Tkaczyk Re: getting geometric bounds of each textframe of each page
May 05, 2010; 04:32
Robert Tkaczyk
Re: getting geometric bounds of each textframe of each page
May 05
Robert Tkaczyk Re: getting geometric bounds of each textframe of each page
May 05, 2010; 04:32
Robert Tkaczyk
Re: getting geometric bounds of each textframe of each page
May 05
Dave Saunders Re: getting geometric bounds of each textframe of each page
May 05, 2010; 04:46
Dave Saunders
Re: getting geometric bounds of each textframe of each page
May 05
pankaj.c Re: getting geometric bounds of each textframe of each page
May 05, 2010; 04:51
pankaj.c
Re: getting geometric bounds of each textframe of each page
May 05
pankaj.c Re: getting geometric bounds of each textframe of each page
May 05, 2010; 04:51
pankaj.c
Re: getting geometric bounds of each textframe of each page
May 05
Robert Tkaczyk Re: getting geometric bounds of each textframe of each page
May 05, 2010; 04:57
Robert Tkaczyk
Re: getting geometric bounds of each textframe of each page
May 05
pankaj.c Re: getting geometric bounds of each textframe of each page
May 05, 2010; 05:23
pankaj.c
Re: getting geometric bounds of each textframe of each page
May 05
pankaj.c Re: getting geometric bounds of each textframe of each page
May 05, 2010; 05:23
pankaj.c
Re: getting geometric bounds of each textframe of each page
May 05
pankaj.c Re: getting geometric bounds of each textframe of each page
May 05, 2010; 05:23
pankaj.c
Re: getting geometric bounds of each textframe of each page
May 05
pankaj.c Re: getting geometric bounds of each textframe of each page
May 05, 2010; 05:23
pankaj.c
Re: getting geometric bounds of each textframe of each page
May 05
Robert Tkaczyk Re: getting geometric bounds of each textframe of each page
May 05, 2010; 06:50
Robert Tkaczyk
Re: getting geometric bounds of each textframe of each page
May 05
pankaj.c Re: getting geometric bounds of each textframe of each page
May 05, 2010; 07:54
pankaj.c
Re: getting geometric bounds of each textframe of each page
Search
Lasso Programming
This site manages and broadcasts several email lists pertaining to Lasso Programming and technologies related and used by Lasso developers. Sign up today!