Title: Bookmarks
Thanks.  I am currently using all of these APIs, but I actually need to save the entire CosObj for each Bookmark, and somehow recreate them.  Getting each bookmark's title is not the problem.  I need to store the CosObj somehow (in text format), then I can recreate it later.
 
-Chris
-----Original Message-----
From: An Hong Phan [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 11, 2003 1:52 PM
To: [EMAIL PROTECTED]
Subject: Re: [PDFdev] Bookmarks

You might want to lookup these APIs:
 
PDDocGetBookmarkRoot(pdDoc);
PDBookmarkGetTitle(pdBookmark, strTitle, _MAX_STR_LEN);
PDBookmarkHasChildren
...
PDBookmark.... in generall
 
You need to iterate thru the bookmark tree for all of the bookmarks and get the text by calling
PDBookmarkGetTitle(). 
 
- An -
----- Original Message -----
From: Chris Cyr
Sent: Thursday, September 11, 2003 8:47 AM
Subject: [PDFdev] Bookmarks

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

Reply via email to