I'm trying to create a menu option in Adobe Acrobat that will use JavaScript to parse through a large pdf document and create named destinations using the titles in the document.
The titles all follow the same unique format, so I am able to identify them using regex. Once I identify a title, I also identify the page it's on - and I store both the title and page number in an array.
My plan was to create the named destinations using the information stored in the array. However, I have not had much luck figuring out how to create named destinations with JavaScript.
Any input would be appreciated.