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

    Getting Page number for Notes

      Hi

      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

      myDocument.stories.item(k).paragraphs.item(i).notes.length;

      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:
      myDocument.stories.item(k).paragraphs.item(i).parentTextFrames[0].parent.name;

      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.

      Thanks