These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Bookmark Questions.

MSP
Registered: Sep 16 2008
Posts: 25

Hello,
I am having trouble getting the name of the bookmark of the current page. I have tried using.

var myRoot = this.bookmarkRoot;
var myChild = myRoot.children[0];

I then need to export the text value of the current pages bookmark when a checkbox on the page is checked. Thanks!

MSP

George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1876
A bookmark does not belong to a page, but a bookmark can have an action associated with it that causes a page to be displayed. So although you can determine the page number of a bookmark by executing it (assuming its associated action causes a page to be displayed), there are no methods that will give you a bookmark given a page number.

George
MSP
Registered: Sep 16 2008
Posts: 25
So how do you do execute that?
George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1876
You can execute a bookmark with JavaScript by acquiring a bookmark object and using the "execute" method.

George