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
- class TextAbsorber
- namespace Aspose.Pdf.Text
- assembly Aspose.PDF
TextAbsorber(TextExtractionOptions)
Initializes a new instance of the TextAbsorber
with extraction options.
public TextAbsorber(TextExtractionOptions extractionOptions)
Parameter | Type | Description |
---|---|---|
extractionOptions | TextExtractionOptions | Text 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
- class TextExtractionOptions
- class TextAbsorber
- namespace Aspose.Pdf.Text
- assembly Aspose.PDF
TextAbsorber(TextExtractionOptions, TextSearchOptions)
Initializes a new instance of the TextAbsorber
with extraction and text search options.
public TextAbsorber(TextExtractionOptions extractionOptions, TextSearchOptions textSearchOptions)
Parameter | Type | Description |
---|---|---|
extractionOptions | TextExtractionOptions | Text extraction options |
textSearchOptions | TextSearchOptions | Text search options |
Remarks
Performs text extraction and provides access to the extracted text via Text
object.
See Also
- class TextExtractionOptions
- class TextSearchOptions
- class TextAbsorber
- namespace Aspose.Pdf.Text
- assembly Aspose.PDF
TextAbsorber(TextSearchOptions)
Initializes a new instance of the TextAbsorber
with text search options.
public TextAbsorber(TextSearchOptions textSearchOptions)
Parameter | Type | Description |
---|---|---|
textSearchOptions | TextSearchOptions | Text search options |
Remarks
Performs text extraction and provides access to the extracted text via Text
object.
See Also
- class TextSearchOptions
- class TextAbsorber
- namespace Aspose.Pdf.Text
- assembly Aspose.PDF