Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Creating Bookmarks using javaScript

Avatar

Level 3

Inside the initialize event for several key text fields

I have added the following code:

this.bookmarkRoot.createChild("Basic Information"

, "this.pageNum=1", 1);

this.bookmarkRoot.children[0];

this.bookmarkRoot.color

= color.red;

this.bookmarkRoot.Style

= 2;

.....

for each text field I change the index of tis.bookmarkRoot.children[x]; I have a total of 8 bookmarks I am trying to create.

I was hoping to create a separate bookmark for each major section in the PDF form in this way -

but it simply doesn not work .

Can anyone advise me on this ?  Also - will bookmarks created in this way be visible in the Reader ?

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

I have reworked one of our example that uses the app.popUpMenu method to create a menu type index.

The example is here: http://assure.ly/ihtw4u

This might give you some ideas.

Niall

Assure Dynamics

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Hi,

I have reworked one of our example that uses the app.popUpMenu method to create a menu type index.

The example is here: http://assure.ly/ihtw4u

This might give you some ideas.

Niall

Assure Dynamics

Avatar

Level 3

Thank you so much for the Excellent tip Niall .

This is not what i was expecting  -  but it is More than adequate -

I guess that the bookmarks , my first approach , are not entirely functional for this purpose anyway -

Thanks Again.