7 Replies Latest reply on Jan 25, 2017 12:24 PM by Bernd Alheit

    Create one bookmark, named with filename, on page 1 of PDF

    helenr5250251

      I thought I'd cracked it with this: bookmarkRoot.createChild({cName: this.documentFileName, cExpr: "this.pageNum++", nIndex: 0});

       

      However, it inserts the bookmark at page 2. I've done some reading and found out why this happens - createChild makes a bookmark on the page after the hidden root bookmark.

       

      Is it possible to achieve?

       

      NB: after running this script on a large number of PDFs my plan is to combine them into one document, then use another script to create a contents list.