2 Replies Latest reply on Dec 18, 2009 6:20 PM by Yuliaart

    Return PDF page number from the name of the link in InDesign CS4 JS

    Yuliaart Level 1

      Hi, I need to return pdf page number of the linked file in InDesign.Here what I have so far, but my FilePath comes back undefined, and I am not sure if pageNmuber line would work:


          var myArtBack = app.activeDocument.pages[1].rectangles[0].graphics[0];
          var myArtBackName = myArtBack.itemLink.name;

          var myBackFilePath = myArtBackName.filePath;

          var myPageNumber  = myBackFilePath.PDFAttribute.pageNumber;



      Your help is highly appreciated.