TextAbsorberVisit Method (XForm)
Extracts text on the specified XForm.

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

Parameters

form
Type: Aspose.PdfXForm
Pdf form 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].Resources.Forms["Xform1"]);

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