Reply To: Current Page

#14323266

There is also the parentPage property of a textFrame. Handy if your script is looping through many pages .

For instance this :

var currentPage = myParagraphs[i].parentTextFrames[0].parentPage;

would set the currentPage variable to the page of the paragraph’s initial insertionPoint.

In much the same manner you could find the current page of a character, a textstyle range, a footnote, a note, an anchored object etc.

This article was last modified on January 17, 2020

Comments (0)

Loading comments...