We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

TextAbsorber dies with OutOfMemory exception- trying to get text from PDFs


TextAbsorber dies after it consumes all available memory. PDF files are attached.

Thank you! :slight_smile:

Sample code as usual:

Dim License As New Aspose.Pdf.License()
'Instantiate PdfExtractor object
Dim extractor As Aspose.Pdf.Facades.PdfExtractor = New Aspose.Pdf.Facades.PdfExtractor()
'Set Password for input PDF file
extractor.Password = “”
'Bind the input PDF document to extractor
'Extract text from the input PDF document
'Save the extracted text to a text file
Dim OutputFile As String
Dim SaveFileDlg As New SaveFileDialog
If SaveFileDlg.ShowDialog = Windows.Forms.DialogResult.OK Then
OutputFile = SaveFileDlg.FileName
Dim sss As String = My.Computer.FileSystem.ReadAllText(OutputFile, System.Text.Encoding.Unicode)
End If

Hi there,

Thanks for your inquiry. I have tested your scenario with shared documents using Aspose.Pdf for .NET 10.9.0 and unable to notice OutOfMemoryException with KK17_2015_Oversigt.pdf. However other two files are throwing the exception, so logged a ticket PDFNEWNET-39496 for further investigation and resolution. We will keep you updated via this thread regarding the issue status.

We are sorry for the inconvenience caused.

<span style=“font-size:10.0pt;font-family:“Arial”,“sans-serif”;mso-fareast-font-family:
mso-bidi-language:AR-SA”>Best Regards,