TextAbsorberText Property
Gets extracted text that the TextAbsorber extracts on the PDF document or page.

Namespace: Aspose.Pdf.Text
Assembly: Aspose.PDF (in Aspose.PDF.dll) Version: 20.6
Syntax
public virtual string Text { get; }

Property Value

Type: String
Examples
The example demonstrates how to extract text from all pages of the PDF document.
C#
// open document
Document doc = new Document(inFile);

// create TextAbsorber object to extract text
TextAbsorber absorber = new TextAbsorber();

// accept the absorber for all document's pages
doc.Pages.Accept(absorber);

// get the extracted text
string extractedText = absorber.Text;
See Also