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 stricts 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
//alert ("All Page Items is "+ pageItems)
for (var i=0;i<=myTotalPage;i++)
{
var totalTextFrames = myDoc.pages.textFrames.length;
//alert ("Total Text Frames on page are "+ totalTextFrames)
for (var t=0;t<=totalTextFrames;t++)
{
var Text_FRAME = myDoc.pages.textFrames
//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);
}
}
}