14 Replies Latest reply on Jul 23, 2014 2:55 AM by Test Screen Name

    Bookmark and its properties

    Sudha K Level 1

      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