|
![]() |
||||||||
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. |
java.lang.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 PDFMethod Detail |
---|
private byte[] getContentBytesForPage(int pageNum) throws java.io.IOException
pageNum
- the page number of page you want get the content stream from
java.io.IOException
public java.lang.String getTextFromPage(int page) throws java.io.IOException
page
- the page number of the page
java.io.IOException
|
Hosted by Hostbasket | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |