Question
Findout Page coordinates of a frame.
Hello.
Writing Java scripts for the Indesign CS3.
Enumerate through the xml content and get the image and text frames.
Need to detect Page coordinates of them.
When I wrote the same code in c++, I was get pasteboard coordinates of the rectangle and page, substract results and get necessary shift for rectangle coordinates. But now, when I use a script, I do not know, how to get pasteboard coordinates of the page.
For Frames I have find out the string:
"myFrame.resolve([[myFrame.bounds[1], myFrame.bounds[0]], AnchorPoint.TOP_LEFT_ANCHOR], CoordinateSpaces.PASTEBOARD_COORDINATES);"
But even here I'm not sure in the right order of the bounds[0 & 1].
How to get the page coordinates of a frame?
Thank's for your notice.
Writing Java scripts for the Indesign CS3.
Enumerate through the xml content and get the image and text frames.
Need to detect Page coordinates of them.
When I wrote the same code in c++, I was get pasteboard coordinates of the rectangle and page, substract results and get necessary shift for rectangle coordinates. But now, when I use a script, I do not know, how to get pasteboard coordinates of the page.
For Frames I have find out the string:
"myFrame.resolve([[myFrame.bounds[1], myFrame.bounds[0]], AnchorPoint.TOP_LEFT_ANCHOR], CoordinateSpaces.PASTEBOARD_COORDINATES);"
But even here I'm not sure in the right order of the bounds[0 & 1].
How to get the page coordinates of a frame?
Thank's for your notice.