2 Replies Latest reply on Jun 15, 2009 7:42 PM by kwilson68

    Accessing page number property [CS3] [JS]

    kwilson68

      I am trying to find a way to access page numbers from a JavaScript program. Pages can always be accessed by their number (e.g., currentDocument.pages.item(0) references the first page). I have several documents (not gathered as a book) that have their page numbers set to start at different numbers. For instance, one document begins its page numbering at 100. That page 100 is still accessed by currentDocument.pages.item(0), since it is still the first page of the document.

       

      My question is this: is there a way for the script to determine what the actual page number is for any given page? I need this number to insert as an attribute for an XML element that will mark the beginning of new pages in the print version so that citations can be created from the digital version. It seems like it should be something simple like myPage.pageNumber, but I haven't been able to find a property like this in any of the scripting references or any discussion of this issue in the forums.

       

      There has to be an obvious answer, but somehow it is eluding me.

       

      Kevin