Quantcast
Channel: Adobe Community: Message List - Acrobat SDK
Viewing all articles
Browse latest Browse all 10848

Re: How do I nest bookmarks via Excel VBA

$
0
0

I am using Acrobat 9. The Type Library is the VBA Library accompanied in Adobe Reader's installation. I have Reader 11.0 and the library full path on my local drive is:
C:\Program Files\Adobe\Reader 11.0\Reader\AcroRd32.dll. From what I can tell this library is identical to the Acrobat 9.0 library at C:\Program Files\Adobe\Acrobat 9.0\Acrobat\acrobat.tlb. So I believe my type library is OK.

I did a quick search on 'bookmark' in the SDK live doc you mentioned and nothing relevant turned up.

My API methods are below:


Dim gApp As AcroApp
Dim myBookmark As AcroPDBookmark
Dim acroPageView As CAcroAVPageView
Dim gPdDoc As AcroPDDoc
Dim pageNum As Integer

<LOOP START> on pageNum
            acroPageView.Goto pageNum
            gApp.MenuItemExecute "NewBookmark" ' add a bookmark to the page
            isBookmark = myBookmark.GetByTitle(gPdDoc, "Untitled") ' selects the new bookmark
            isBookmark = myBookmark.SetTitle(“My Bookmark’s Name”) ' changes the new bookmark's title
<LOOP END>

 

Any thoughts?


Viewing all articles
Browse latest Browse all 10848

Latest Images

Trending Articles



Latest Images