7 Replies Latest reply on Dec 20, 2013 9:15 AM by try67

    How to make bookmark still point to moved page

    Corgano Level 1

      Say we have a PDF with three pages

      Apple

      Orange

      Peach

      And we use Ctrl+B to make a bookmark named "123" on Orange

      Apple

      Orange <- 123
      Peach

      And then we move them around, the bookmark will always still point to Orange

      Apple
      Peach

      Orange <- 123

       

      Now doing the same thing again, but using bookmark.createChild(), what command do I make it use to always point to the Orange page?

       

      I have tried bookmark.createChild("123", "pageNum=1", 0) and it makes the bookmark

      Apple

      Orange <- 123
      Peach

      But it only ever navigates to the second page

      Apple
      Peach <- 123

      Orange

      How do I add a bookmark with javascript that will always go to the correct page?