Skip navigation
Currently Being Moderated

javascript go to bookmark

Jun 19, 2012 5:34 AM

Tags: #javascript #acrobat-reader

Is there a way to go to a bookmark using javascript?


like: app.gotoBookmark('bookmarkname')


I've found the methods gotoNamedDest(), which only works to go to named destinations defined in the document. I have a document filled with bookmarks (document structure).


Thanks in advance!



Or perhaps using an annotation: app.gotoAnnotation('name')


Message was edited by: richard7719 added annotation remark

  • Currently Being Moderated
    Jun 19, 2012 5:42 AM   in reply to richard7719

    No, since a bookmark doesn’t necessary represent a physical point in a book.


    You can, IIRC, “execute” a bookmark.   Check the JavaScript docs on the Bookmark object.

    Mark as:
  • Currently Being Moderated
    Jun 22, 2012 1:56 AM   in reply to richard7719

    A possibility: perhaps one or other string has hidden spaces. If you haven't tried this, log them in a way that lets you check this e.g.

    name1=*This string*

    name2=*This string *

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points