This content has been marked as final.
Show 1 reply
-
1. Re: [JS] Coordinates of table
Jump_Over Feb 11, 2013 8:31 AM (in response to RF2009)Hi,
Since table has no bounds one have to calculate this and it can be as much accurate as his assuming can be accurate.
Lets assume that there is no keepBaseline property in use.
myTable x0 coordinate is equal to:
myTable.storyOffset.horizontalOffset;
myTable y0 coordinate is equal to:
myTable.cells[0].insertionPoints[0].baseline +
myTable.cells[0].bottomInset -
myTable.cells[0].height;
myTable x1 coordinate is equal to: myTable x0 + myTable.width;
myTable y1 coordinate is equal to: myTable y0 + SomeRowsSelection.height;
SomeRowsSelection is a part of table or whole table. Depends on it spans to multiple textFrames or not.
Just an idea...
rgds

