|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.itextpdf.text.pdf.parser.PdfTextExtractor
public final class PdfTextExtractor
Extracts text from a PDF file.
| Method Summary | |
|---|---|
static java.lang.String |
getTextFromPage(PdfReader reader,
int pageNumber)
Extract text from a specified page using the default strategy. |
static java.lang.String |
getTextFromPage(PdfReader reader,
int pageNumber,
TextExtractionStrategy strategy)
Extract text from a specified page using an extraction strategy. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.lang.String getTextFromPage(PdfReader reader,
int pageNumber,
TextExtractionStrategy strategy)
throws java.io.IOException
reader - the reader to extract text frompageNumber - the page to extract text fromstrategy - the strategy to use for extracting text
java.io.IOException - if any operation fails while reading from the provided PdfReader
public static java.lang.String getTextFromPage(PdfReader reader,
int pageNumber)
throws java.io.IOException
Note: the default strategy is subject to change. If using a specific strategy
is important, use getTextFromPage(PdfReader, int, TextExtractionStrategy)
reader - the reader to extract text frompageNumber - the page to extract text from
java.io.IOException - if any operation fails while reading from the provided PdfReader
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||