TextAbsorberVisit Method (Page)
Extracts text on the specified page

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

Parameters

page
Type: Aspose.PdfPage
Pdf pocument page object.
Examples
The example demonstrates how to extract text on the first PDF document page.
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.Pages[1]);

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