Want to extract all the text from pdf. I have below code for that.But unable to extract all the text.
var pdfDocument = new Aspose.Pdf.Document(@“OriginalPdf.pdf”);
TextAbsorber textAbsorber = new TextAbsorber();
pdfDocument.Pages.Accept(textAbsorber);
String extractedText = textAbsorber.Text;
textAbsorber.Visit(pdfDocument);
File.WriteAllText(@“demodata.txt”, extractedText);
From below pdf i want to extract the text.
Test.pdf (83.0 KB)
Text file generated contains only headers -
Evaluation Only. Created with Aspose.PDF. Copyright 2002-2018 Aspose Pty Ltd.
Maintenance
Clean
Can you please help me with this?