public final class PdfTextExtractor extends Object
Modifier and Type | Method and Description |
---|---|
static String |
getTextFromPage(PdfPage page)
Extract text from a specified page using the default strategy.
|
static String |
getTextFromPage(PdfPage page, ITextExtractionStrategy strategy)
Extract text from a specified page using an extraction strategy.
|
static String |
getTextFromPage(PdfPage page, ITextExtractionStrategy strategy, Map<String,IContentOperator> additionalContentOperators)
Extract text from a specified page using an extraction strategy.
|
public static String getTextFromPage(PdfPage page, ITextExtractionStrategy strategy, Map<String,IContentOperator> additionalContentOperators)
page
- the page for the text to be extracted from
strategy
- the strategy to use for extracting text
additionalContentOperators
- an optional map of custom IContentOperator
s for rendering instructions
public static String getTextFromPage(PdfPage page, ITextExtractionStrategy strategy)
page
- the page for the text to be extracted from
strategy
- the strategy to use for extracting text
public static String getTextFromPage(PdfPage page)
getTextFromPage(PdfPage, ITextExtractionStrategy)
.
page
- the page for the text to be extracted from
Copyright © 1998–2023 iText Group NV. All rights reserved.