Free Support Forum - aspose.com

PdfExtractor doesn't work

Hi, we are licensed Aspose user. We try to use pdfExtractor to extract text from a pdf bill but failed. There is no exception but the output test.txt file is empty. Here is the codes and test.pdf attached, please check it as soon as possible. Thank you.

Dim extractor As PdfExtractor = New PdfExtractor()
Dim lic1 As Aspose.Pdf.Kit.License = New Aspose.Pdf.Kit.License
lic1.SetLicense("Aspose.Total.lic")
extractor.Password = ""
extractor.BindPdf("C:\PDFExtractor\test.pdf")
extractor.ExtractText()

extractor.GetText("C:\PDFExtractor\test.txt")

Hi,

Thank you for considering Aspose!

I test it with Aspose.Pdf.Kit 2.7.0.0 , and the result txt is ok. I use the following codes:

Dim extractor As Aspose.Pdf.Kit.PdfExtractor = New Aspose.Pdf.Kit.PdfExtractor
Dim lic1 As Aspose.Pdf.Kit.License = New Aspose.Pdf.Kit.License
lic1.SetLicense("c:\mylic\Aspose.Total.lic") ' specify the path
' extractor.Password = ""
extractor.BindPdf("D:\temptestpdf\test\test.pdf")
extractor.ExtractText()
extractor.GetText("d:\test.txt")

Hi, I downloaded the new release, and the problem is solved. Thank you very much.