Exception while reading text from pdf

I am uploading attached pdf on below link , an exception is coming, while uploading the file.

http://www.aspose.com/demos/.net-components/aspose.pdf/vb.net/PdfDemos/Text/ExtractText.aspx

Can anybody tell me why an exception is coming.

Thank You.

Hi Ismail,


Thanks for your inquiry. After initial investigation, we’ve observed the reported issue as online text extraction demo is not working with your source document. We are looking into the issue and will update you soon. Meanwhile, You can use following code snippet for text extraction. Hopefully it will sever the purpose and you can also make a request for 30 days temporary license to evaluate our product without
any limitation.

//open document
Document pdfDocument = new Document(myDir + “Indkobsordre+fra+SSI+328119+23.04.2013.pdf”);
//create TextAbsorber object to extract text
TextAbsorber textAbsorber = new TextAbsorber();
//accept the absorber for all the pages
pdfDocument.Pages.Accept(textAbsorber);
//get the extracted text
string extractedText = textAbsorber.Text;
// create a writer and open the file
TextWriter tw = new StreamWriter(myDir + “extracted-textdom.txt”);
// write a line of text to the file
tw.WriteLine(extractedText);
// close the stream
tw.Close();

Please feel free to contact us for any further assistance.

Best Regards,