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 was unsuccessful in completing your code... I was able to set the jsoObject but the 'CountAllBookmarks' did not load. Do I need to load a javascript library?

 

Dim gApp As Acrobat.CAcroApp
Dim gPDDoc As Acrobat.CAcroPDDoc
Dim jso As Object

Sub Button1_Click()
    Set gApp = CreateObject("AcroExch.App")
    Set gPDDoc = CreateObject("AcroExch.PDDoc")
    If gPDDoc.Open("C:\bookmarks.pdf") Then
        Set jso = gPDDoc.GetJSObject ' <-- Works
        MsgBox (jso.CountAllBookmarks()) '<-- Error: 438 - Object does not support this property or method
    End If
End Sub


Viewing all articles
Browse latest Browse all 10848

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>