I'm writing a plugin for Acrobat SDK 5.0. Is there a way to get the bookmark information for the document in text form? Basically, I want to extract the bookmark info, save it to a file, and be able to re-create it in another document. I know I can get the CosObj for a bookmark, and then Enum the key/value pairs, but is there a better way? It gets tricky since some of the bookmark's CosObj values are themselves CosDicts, then I have to enumerate those, etc.
I did something similar with annotations... I can create a CosDoc using PDDocExportSomeNotes, save the CosDoc to a file, and get the text from the file. I didn't see anything like this for bookmarks though.
Any help would be appreciated. Thanks.
-Chris
