com.lowagie.text.pdf.parser
Class PdfTextExtractor

java.lang.Object
  extended by com.lowagie.text.pdf.parser.PdfTextExtractor

public class PdfTextExtractor
extends java.lang.Object

Extracts text from a PDF file.

Since:
2.1.4

Constructor Summary
PdfTextExtractor(PdfReader reader)
          Creates a new Text Extractor object.
 
Method Summary
 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
 

Constructor Detail

PdfTextExtractor

public PdfTextExtractor(PdfReader reader)
Creates a new Text Extractor object.

Parameters:
reader - the reader with the PDF
Method Detail

getTextFromPage

public java.lang.String getTextFromPage(int page)
                                 throws java.io.IOException
Gets the text from a page.

Parameters:
page - the page number of the page
Returns:
a String with the content as plain text (without PDF syntax)
Throws:
java.io.IOException


iText 2.1.7