Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 90000

Bookmark and its properties

$
0
0

Hi,

 

   I have created bookmark in pdf with multiple levels.  After run the script the bookmark properties shown as below.

 

1.png

 

But I want to set the properties as the below image.

2.png

 

Code :

 

tell application "Adobe Acrobat Pro"

    tell active doc

        set pgNo to 3

        set cont to "TEST CONTENTS"

        set CNT to count of bookmarks

        set JsScript to "var gotoPg =" & pgNo& ";var bmarkConts = \"" & cont & "\";var root = this.bookmarkRoot;root.createChild(bmarkConts , \"this.pageNum=\" + gotoPg ," & CNT - 1 & ");"

    end tell

    set res to do script JsScript   

end tell

 

Whats wrong in my code?? Can anyone help me...

 

 

Thanks in Advance,

Sudha K


Viewing all articles
Browse latest Browse all 90000

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>