|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.lowagie.text.pdf.parser.PdfTextExtractor
public class PdfTextExtractor
Extracts text from a PDF file.
| Field Summary | |
|---|---|
private SimpleTextExtractingPdfContentStreamProcessor |
extractionProcessor
The processor that will extract the text. |
private PdfReader |
reader
The PdfReader that holds the PDF file. |
| Constructor Summary | |
|---|---|
PdfTextExtractor(PdfReader reader)
Creates a new Text Extractor object. |
|
| Method Summary | |
|---|---|
private byte[] |
getContentBytesForPage(int pageNum)
Gets the content stream of a page. |
String |
getTextFromPage(int page)
Gets the text from a page. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final PdfReader reader
private final SimpleTextExtractingPdfContentStreamProcessor extractionProcessor
| Constructor Detail |
|---|
public PdfTextExtractor(PdfReader reader)
reader - the reader with the PDF| Method Detail |
|---|
private byte[] getContentBytesForPage(int pageNum)
throws IOException
pageNum - the page number of page you want get the content stream from
IOException
public String getTextFromPage(int page)
throws IOException
page - the page number of the page
IOException
|
Hosted by Hostbasket | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||