4 Replies Latest reply on Jun 24, 2013 1:20 PM by gkaiseril

    How to print bookmark into a PDF File?

    T. Duc

      Hi community


      I have a PDF-File with a few pages and need to have on each page the bookmark printed as a text.

      I tried with Javascript, and can print the filename but not yet the bookmarks.


      I have following script:


      app.addMenuItem({cName:"Print Filename", cParent:"File", nPos:20, cExec:"PrtFN();"});


      //Print Filename to Pages

      function PrtFN()


        for (var p = 0; p < this.numPages; p++)


          var fd = this.addField("Print Bookmark", "text", p, [563,519,790,545]);




          fd.value = (this.documentFileName);




      Do someone of you know how to print the bookmarks, something like "fd.value = (this.documentBookmark);" ?


      Thanks for helpful answers!