2 Replies Latest reply on Aug 31, 2016 1:15 AM by try67

    how to find the particular bookmark 's page

    ariva38817767 Level 1

      if i know the name of the bookmark, then it is possible to identify the page related to that book mark?  OR if i know the page number it is possible for me to get the bookmark name?




        • 1. Re: how to find the particular bookmark 's page
          George_Johnson MVP & Adobe Community Professional

          If you know the name you can use JavaScript to loop through the bookmarks to find one with a matching name and then execute it. See the code that does this in the Acrobat JavaScript reference for the bookmark.execute method. If the bookmark action is set to go to a page in the document (multiple actions/bookmark are possible), you can then get the value of the pageNum document property to see what page it targets. There's not a more direct way to go from page number to bookmark name with JavaScript. Obviously, any number of bookmarks can target the same page.

          • 2. Re: how to find the particular bookmark 's page
            try67 MVP & Adobe Community Professional

            Another pitfall is that the bookmark might not be pointing to a specific page at all, and then you think that it's pointing to the current page you're viewing, simply because that's the value of pageNum...