Moved from the Acrobat Macintosh forum (
I would like to add 107 bookmarks to a 250-page PDF in an automated fashion. I have a list of the bookmarks titles, pages, and their hiearchy level.
What's my best bet? [This is with Acrobat 9 on a Mac, but I can use any platform...]
Obviously I don't want to create them by hand with New Bookmark in Acrobat Pro.
My document is not tagged, and I don't see an easy way to mass create tags (is there one?).
It appears that the Acrobat Pro scripting DOM does support creating bookmarks with the Bookmark createChild()method, but it's looking a little dicey to me how to use that straightforwardly, so if it's easy to provide a few pointers, I would be greatful.
I'd like to avoid buying a plugin (or using one on a free trial basis, since I don't really intend to buy one).
I initially planned on using pdftk's update_info functionality, but it turns out that while pdftk's dump_data subcommand dumps bookmark info, it's corresponding update command doesn't handle bookmarks at all.
I considered writing some Java code with iText and/or PDFBox, but I didn't see any good examples of exactly how to create bookmarks that point to pages, and it seemed like it might be a big pain to figure out.
I'm comfortable scripting other Adobe products in JavaScript, but I've never dealt with Acrobat.
Hopefully that sets the stage. Any advice is appreciated!
Thanks!