Skip to main content
August 31, 2016
Question

How to get the list of all book marks and its depths

  • August 31, 2016
  • 2 replies
  • 535 views

Hi,

can any one guide me to get the list of all book marks in the PDF document?  Is there any way to get the hierarchy of the book mark tree.  If one child is having sub child and that sub child is having more sub child,  what is the way to find that?

Thank you,

Ariv

This topic has been closed for replies.

2 replies

try67
Community Expert
Community Expert
August 31, 2016

This can be achieved using a recursive function that iterates over the entire bookmark tree and outputs the names and levels of each bookmark.

August 31, 2016

Thank you very much for your valuable replies.

Inspiring
August 31, 2016

There's some sample code in the Acrobat JavaScript reference for the children property of the bookmark object that should help.