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

Free Support Forum - aspose.com

Help with loading of pure text from a PDF file

When I try to extract pure text from pdf file it, I do not see any text on output.
I use this code:

Document pdfDocument = new Document(@“C:\temp\mypdffile.pdf”);
TextAbsorber textAbsorber = new TextAbsorber(new TextExtractionOptions(TextExtractionOptions.TextFormattingMode.Raw));

Can anyone advise me where I am doing wrong?


Hi Juri,

The code that you have shared seems to be correct. I can see the text extracted from PDF. May be the problem is reliant on the source file you are using.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

I tried the same pdf file in the demo application https://docs.aspose.com/pdf/net/search-and-get-text-from-pdf/ and it works great.