9 Replies Latest reply on Apr 2, 2017 1:17 PM by try67

    How to write a simple JScript to modify bookmarks.

    sg50492549

      I want to modify the book marks in my pdf. How can I write a code in JSCript for that ?

       

      For example when I Ctrl + J and try to run this code:

       

      var bkm = this.bookmarkRoot.children[0];

      console.println( "Top-level bookmark name: " + bkm.name );

       

      It says :

       

      ReferenceError: bkm is not defined

      1:Console:Exec

      undefined

       

      Thanks for your kind assistance.

       

      Message was edited by: JSM (Discussion successfully moved from The Lounge to Editing & Exporting PDFs)