Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
Would you mind sharing an the scripts that you found online?
Copy link to clipboard
Copied
Are the bookmarks on multiple levels? If so, that would require a recursive function.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more