On this Page
View Bookmarks
You can get a very simple, but therefore easily able to be processed via script, list of all the bookmarks in a PDF by using:
DO PDFExtract -in multiDoc.pdf -dumpIndex -quiet > bookmarks.txt
or
DO PDFExtract -in multiDoc.pdf -dumpIndex -out bookmarks.txt
You would likely then use a simple script to read that output file and take whatever actions you desired to take. Do look at the Sample_Extract sample that is provided in the installation.
DO sample 2