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 fromstrategy - the strategy to use for extracting textadditionalContentOperators - an optional map of custom IContentOperators for rendering instructionspublic static String getTextFromPage(PdfPage page, ITextExtractionStrategy strategy)
page - the page for the text to be extracted fromstrategy - the strategy to use for extracting textpublic static String getTextFromPage(PdfPage page)
getTextFromPage(PdfPage, ITextExtractionStrategy).page - the page for the text to be extracted fromCopyright © 1998–2018 iText Group NV. All rights reserved.