org.jpedal.examples.text
Class ExtractTextInRectangle

java.lang.Object
  extended by org.jpedal.examples.text.ExtractTextInRectangle
Direct Known Subclasses:
ExtractDate, ExtractHeadlines, ExtractSection

public class ExtractTextInRectangle
extends java.lang.Object

Description:Sample code showing how jpedal library can be used with pdf files to extract text from a specified Rectangle. Debugging tip: Set verbose=true in LogWriter to see what is going on.


Field Summary
static boolean isTest
          used as part of test to limit pages to first 10
static boolean showMessages
          flag to show if we display messages
 
Constructor Summary
ExtractTextInRectangle()
           
ExtractTextInRectangle(java.lang.String file_name)
          example method to open a file and extract the raw text
 
Method Summary
 java.lang.String getExtractedText()
          return text extracted with last extraction
static void main(java.lang.String[] args)
          main routine which checks for any files passed and runs the demo
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

isTest

public static boolean isTest
used as part of test to limit pages to first 10


showMessages

public static boolean showMessages
flag to show if we display messages

Constructor Detail

ExtractTextInRectangle

public ExtractTextInRectangle()

ExtractTextInRectangle

public ExtractTextInRectangle(java.lang.String file_name)
example method to open a file and extract the raw text

Method Detail

main

public static void main(java.lang.String[] args)
main routine which checks for any files passed and runs the demo


getExtractedText

public java.lang.String getExtractedText()
return text extracted with last extraction