1 Reply Latest reply on Jun 26, 2011 5:14 AM by Bernd Alheit

    How can I get the page num to a bookmark?

    qidanei

      I run the following  aaa.vbs to success to display the first bookmark of the aaa.pdf.

       

      How can I get the page number pointed by  the first bookmark?

       

      *************************aaa.vbs**********************************
      set AcroApp=CreateObject("AcroExch.App")
      set pdf=CreateObject("AcroExch.PDDoc")
      pdf.Open("D:\aaa.pdf")
      set BMarkRoot = pdf.GetJSObject.BookMarkRoot

       

      BMRs=BMarkRoot.children

      MsgBox BMRs(0).name

      ***********************************************************

       

      Double-Click the aaa.vbs, then I get the title of the first bookmark of the aaa.pdf.