Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

Aspose PDF is throwing out of memory exception during text extraction

$
0
0
i am using Aspose PDF(version 8.3.1.0)  to extract the text from a PDF file to a TXT file. This following code is throwing an out of memory exception on 29 MB PDF file. Here is the code snippet. I tried attaching my input PDF file here, but the upload is getting timed out(may be because of the size)  
     
//code snippet     

   Aspose.Pdf.Facades.PdfExtractor extractor = new Aspose.Pdf.Facades.PdfExtractor();

                //Bind the input PDF document to extractor
                extractor.BindPdf(InputFileName);
                //Extract text from the input PDF document
                extractor.ExtractText();         //This lines is throwing the exception    
                //Save the extracted text to a text file
                extractor.GetText(OutputFileName);


Viewing all articles
Browse latest Browse all 3131

Trending Articles