I indi visual Member Jun 28, 2011 #1 Is it possible to convert PDF files to .Txt files? Could anyone point me in the right direction on this one?
Is it possible to convert PDF files to .Txt files? Could anyone point me in the right direction on this one?
I indi visual Member Jun 28, 2011 #2 I've found the following code benath, but it keeps bugging out at line: 'Set jsObj = AcroXPDDoc.GetJSObject Any ideas on what's causing this? Sub Convert_PDF_To_Text_File() Dim AcroXApp As Object Dim AcroXAVDoc As Object Dim AcroXPDDoc As Object Set AcroXApp = CreateObject("AcroExch.App") AcroXApp.Hide Set AcroXAVDoc = CreateObject("AcroExch.AVDoc") AcroXAVDoc.Open strPDFPath, "Acrobat" AcroXAVDoc.BringToFront Set AcroXPDDoc = AcroXAVDoc.GetPDDoc Dim jsObj As Object Set jsObj = AcroXPDDoc.GetJSObject jsObj.SaveAs strOutputFile, "com.adobe.acrobat.plain-text" AcroXAVDoc.Close False AcroXApp.Exit End Sub
I've found the following code benath, but it keeps bugging out at line: 'Set jsObj = AcroXPDDoc.GetJSObject Any ideas on what's causing this? Sub Convert_PDF_To_Text_File() Dim AcroXApp As Object Dim AcroXAVDoc As Object Dim AcroXPDDoc As Object Set AcroXApp = CreateObject("AcroExch.App") AcroXApp.Hide Set AcroXAVDoc = CreateObject("AcroExch.AVDoc") AcroXAVDoc.Open strPDFPath, "Acrobat" AcroXAVDoc.BringToFront Set AcroXPDDoc = AcroXAVDoc.GetPDDoc Dim jsObj As Object Set jsObj = AcroXPDDoc.GetJSObject jsObj.SaveAs strOutputFile, "com.adobe.acrobat.plain-text" AcroXAVDoc.Close False AcroXApp.Exit End Sub