Programatically bookmarking a pdf using acrobat api 's

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • niarj
    New Member
    • Jan 2008
    • 6

    Programatically bookmarking a pdf using acrobat api 's

    hi all,

    i have bookmark a pdf from a text file . i am getting error while ...createing a child bookmark .


    i like to make bookmark like ...


    --->> niraj jha
    --->> niraj jha 1(first child).




    Dim cFile As String = "C:\Documen ts and Settings\nirajj \Desktop\niraj\ 1.pdf"

    Dim cApp As Acrobat.CAcroAp p
    Dim cAvDoc As Acrobat.CAcroAV Doc
    Dim cPDoc As Acrobat.CAcroPD Doc
    Dim cpage As Acrobat.CAcroPD Page
    Dim cBookmark As Acrobat.CAcroPD Bookmark
    Dim init As Integer = 6

    ' BOOKMARK OBJECTS
    Dim jso As Object
    Dim BookMarkRoot As Object
    Dim bm As Object
    Dim txtJavascript As String

    Dim cOpenDoc As Boolean

    cApp = CreateObject("A croExch.App")
    cAvDoc = CreateObject("A croExch.AVDoc")
    cPDoc = CreateObject("A croExch.PDDoc")
    cBookmark = CreateObject("A croExch.PDBookm ark")

    cApp.Show()
    cOpenDoc = cAvDoc.Open(cFi le, "Running!")
    cPDoc = cAvDoc.GetPDDoc ()

    jso = cPDoc.GetJSObje ct
    BookMarkRoot = jso.BookMarkRoo t

    '' txtJavascript = "var otherDoc = app.openDoc('EL S.pdf', this);"

    BookMarkRoot.cr eatechild("nira j jha ", "this.pageN um = " & init)

    ''''''''''''''' ''''''''''''''' ''''''''''''''' 'error getting on below line''''''''''' ''''''''''''''' ''''''''''''''' ''''''''''''''' ''''''''''''''' ''''''''''''''' '
    bookmarkroot.ch ildren(0).creat echild("niraj jha 1","this.pageNu m = " & init)
    ''''''''''''''' ''''''''''''''' ''''''''''''''' ''''''''''''''' ''''''''''''''' ''''''''''''''' ''''''''''''''' ''''''''''''''' ''''''''''''''' ''''''''''''''' ''''''''''''''' ''''''''''''''' ''''''''''''''' ''''''''''''''
    cApp.MenuItemEx ecute("Save")


    cApp.Exit()
  • niarj
    New Member
    • Jan 2008
    • 6

    #2
    hi no one have worked with acrobat api

    Comment

    • niarj
      New Member
      • Jan 2008
      • 6

      #3
      No expert is there in the acrobat api.



      i have found the answer , contact if need help......
      i can help those guys how all need help on acrobat api.

      Comment

      Working...