2 Replies Latest reply on Nov 15, 2017 12:20 PM by douglasb36951680

    edit children bookmarks

    douglasb36951680

      Hello,

       

      I am trying to delete all of the second level bookmarks from my pdf.

      I am able to delete the first top level bookmark and it's child with the following code:

       

      if (this.bookmarkRoot.children != null && this.bookmarkRoot.children.length > 0) {

            for (var i = 0; i < this.bookmarkRoot.children.length; i++) {

                  this.bookmarkRoot.children[i].remove();

            }

         }

      However, but i am not sure how to change the code to only delete the second level (children of the children?) book marks.

       

      Any help would be much appreciated.