TextAbsorberExtractionOptions Property
Gets or sets text extraction options.

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

Property Value

Type: TextExtractionOptions
Remarks
Allows to define text formatting mode TextExtractionOptions during extraction. The default mode is Pure
Examples
The example demonstrates how to set Pure text formatting mode and perform text extraction.
C#
// open document
Document doc = new Document(inFile);

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

// set pure text formatting mode
absorber.ExtractionOptions = new TextExtractionOptions(TextExtractionOptions.TextFormattingMode.Pure);

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

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