TextAbsorber.TextAbsorber

TextAbsorber()

Initializes a new instance of the TextAbsorber.

public TextAbsorber()

Remarks

Performs text extraction and provides access to the extracted text via Text object.

Examples

The example demonstrates how to extract text from all pages of the PDF document.

// 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


TextAbsorber(TextExtractionOptions)

Initializes a new instance of the TextAbsorber with extraction options.

public TextAbsorber(TextExtractionOptions extractionOptions)
ParameterTypeDescription
extractionOptionsTextExtractionOptionsText extraction options

Remarks

Performs text extraction and provides access to the extracted text via Text object.

Examples

The example demonstrates how to extract text from all pages of the PDF document.

// open document
Document doc = new Document(inFile);

// create TextAbsorber object to extract text with formatting
TextAbsorber absorber = new TextAbsorber(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


TextAbsorber(TextExtractionOptions, TextSearchOptions)

Initializes a new instance of the TextAbsorber with extraction and text search options.

public TextAbsorber(TextExtractionOptions extractionOptions, TextSearchOptions textSearchOptions)
ParameterTypeDescription
extractionOptionsTextExtractionOptionsText extraction options
textSearchOptionsTextSearchOptionsText search options

Remarks

Performs text extraction and provides access to the extracted text via Text object.

See Also


TextAbsorber(TextSearchOptions)

Initializes a new instance of the TextAbsorber with text search options.

public TextAbsorber(TextSearchOptions textSearchOptions)
ParameterTypeDescription
textSearchOptionsTextSearchOptionsText search options

Remarks

Performs text extraction and provides access to the extracted text via Text object.

See Also