I need to extract images from pdf file. There is option in Acrobat 8.0(Advanced-->Document Processing-->Export All images). I tried to automate that process. But i could not know how to close the browser window. Could you please advice me. I pasted my code below.
Private Sub Form1_Load(ByVa l sender As System.Object, ByVal e As System.EventArg s) Handles MyBase.Load
Dim gp As Acrobat.CAcroAp p
Dim gpdoc As Acrobat.CAcroAV Doc
gp = CType(CreateObj ect("AcroExch.A pp"), Acrobat.CAcroAp p)
gpdoc = CType(CreateObj ect("AcroExch.A VDoc"), Acrobat.CAcroAV Doc)
gpdoc.Open("D:\ main.pdf", "Acrobat")
gp.Show()
Dim ok As Boolean
ok = gp.MenuItemExec ute("ImageConve rsion:Export")
If ok = False Then
MessageBox.Show ("Faile")
End If
End Sub
Thanks,
Prabudass
Private Sub Form1_Load(ByVa l sender As System.Object, ByVal e As System.EventArg s) Handles MyBase.Load
Dim gp As Acrobat.CAcroAp p
Dim gpdoc As Acrobat.CAcroAV Doc
gp = CType(CreateObj ect("AcroExch.A pp"), Acrobat.CAcroAp p)
gpdoc = CType(CreateObj ect("AcroExch.A VDoc"), Acrobat.CAcroAV Doc)
gpdoc.Open("D:\ main.pdf", "Acrobat")
gp.Show()
Dim ok As Boolean
ok = gp.MenuItemExec ute("ImageConve rsion:Export")
If ok = False Then
MessageBox.Show ("Faile")
End If
End Sub
Thanks,
Prabudass