TextAbsorberVisit Method (Document)
Extracts text on the specified document

Namespace: Aspose.Pdf.Text
Assembly: Aspose.PDF (in Aspose.PDF.dll) Version: 20.6
Syntax
public virtual void Visit(
	Document pdf
)

Parameters

pdf
Type: Aspose.PdfDocument
Pdf pocument object.
Examples
The example demonstrates how to extract text on 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
absorber.Visit(doc);

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