PDFdev is a service provided by PDFzone.com | http://www.pdfzone.com
_____________________________________________________________
Hello everyone,
I have two questions here.
First, is there any way to get the page number of bookmark from Visual
Basic? I can get the bookmark name by using the following code:
Private Sub cmdPrint_Click()
Dim gApp As Acrobat.CAcroApp
Dim gPDDoc As Acrobat.CAcroPDDoc
Dim gAVDoc As Acrobat.CAcroAVDoc
Dim jso As Object
Dim bmRoot As Object
Dim jso1 As Variant
Dim jso2 As Variant
Dim BookmarkPage as Interger
'Connect to the Acrobat Application
Set gApp = CreateObject("AcroExch.App")
Set gPDDoc = CreateObject("AcroExch.PDDoc")
If gPDDoc.Open("C:\test.pdf") Then
Set jso = gPDDoc.GetJSObject
Set bmRoot = jso.Bookmarkroot
jso1 = bmRoot.children
jso2 = jso1(0).Name ' get the first bookmark description
BookmarkPage=jso1(0).??????
'?????***I need to know how to get the current page number?***
End If
End Sub
Second question is:
How can I control the print function from Visual Basic? I have the start
page number & end page number. Really appliciate your help.
Thank you.
Feng
To change your subscription:
http://www.pdfzone.com/discussions/lists-pdfdev.html