Skip to main content
Participant
July 20, 2020
Question

Count Bookmarks

  • July 20, 2020
  • 2 replies
  • 818 views

I am using Adobe Acrobat Pro 2017 and am trying to find a way to count the bookmarks in my documents.  I've tried some javascripts I found online but can't get anything to work.  Can someone tell me a step-by-step process to add a button (Action) to the application that will give a count of the bookmarks?

 

Thank you so much.

 

Christine

This topic has been closed for replies.

2 replies

try67
Community Expert
Community Expert
July 20, 2020

Are the bookmarks on multiple levels? If so, that would require a recursive function.

ls_rbls
Community Expert
Community Expert
July 21, 2020

Interesting!

 

Could this also be implemented when spawning templates, not just counting?

 

I apologize if the question has nothing to do with the topic, though.

 

I think I have an idea for another user.

try67
Community Expert
Community Expert
July 21, 2020

Recursion only works when you have a "tree" of undetermined length, as you can't hard-code a loop for each level (because you don't know how many levels there are going to be when you write the code). Templates are not nested, so it doesn't make sense to use it for them.

ls_rbls
Community Expert
Community Expert
July 20, 2020

Would you mind sharing an the scripts that you found online?