4 Replies Latest reply on Dec 19, 2008 12:36 PM by Peter Kahrel

    Getting Page number for Notes


      I am using the below methods to retreive page number of notes.

      Method 1

      var myNotes = myDocument.stories.item(k).notes.everyItem().getElements();

      Method 2


      Wat is the best way to scan through the notes in a document. I am trying to get the page number for each note(Page on which the note is placed)

      For Method 1:
      var myFrame = myDocument.stories.item(k).textContainers[0];
      var myPage=myFrame.parent.name;

      For Method 2:

      In both the cases some of the page numbers aren't displayed. Can somebody tell me is there any other way or am i doing something wrong.