vigneshvicky
New Member
- Joined
- Oct 29, 2014
- Messages
- 7
Hi all,
I am searching for a macro to convert the pdf file into excel file. i am having the code but shows some error on it.
Is there any option to extract the file with certain criteria like name, age etc.... kindly do needful
I am searching for a macro to convert the pdf file into excel file. i am having the code but shows some error on it.
Code:
Sub convertpdf2()
Dim AcroXApp As Acrobat.AcroApp
Dim AcroXAVDoc As Acrobat.AcroAVDoc
Dim AcroXPDDoc As Acrobat.AcroPDDoc
Dim Filename As String
Dim jsObj As Object
Dim NewFileName As String
Filename = "C:\Documents and Settings\xxx\Desktop\file01.pdf"
NewFileName = "U:\file.txt"
Set AcroXApp = CreateObject("AcroExch.App")
'AcroXApp.Show
Set AcroXAVDoc = CreateObject("AcroExch.AVDoc")
AcroXAVDoc.Open Filename, "Acrobat"
Set AcroXPDDoc = AcroXAVDoc.GetPDDoc
Set jsObj = AcroXPDDoc.GetJSObject
jsObj.SaveAs NewFileName, "com.adobe.acrobat.plain-text"
AcroXAVDoc.Close False
AcroXApp.Hide
AcroXApp.Exit
End Sub
Is there any option to extract the file with certain criteria like name, age etc.... kindly do needful
Last edited by a moderator: