org.jpedal.examples.text
Class TextAsWordlistInBackground

java.lang.Object
  extended by org.jpedal.examples.text.TextAsWordlistInBackground

public class TextAsWordlistInBackground
extends java.lang.Object

Sample code showing how jpedal library can be used with pdf files to extract text from a specified Rectangle as a set of words. This example is based on extractTextInRectangle.java These can then be entered into an index engine such as Lucene


Constructor Summary
TextAsWordlistInBackground()
           
TextAsWordlistInBackground(byte[] array)
          example method to open a file and extract the raw text
TextAsWordlistInBackground(java.lang.String file_name)
          example method to open a file and extract the raw text
 
Method Summary
 int getWordsExtractedCount()
          return words extracted.
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
 

Constructor Detail

TextAsWordlistInBackground

public TextAsWordlistInBackground()

TextAsWordlistInBackground

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


TextAsWordlistInBackground

public TextAsWordlistInBackground(byte[] array)
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


getWordsExtractedCount

public int getWordsExtractedCount()
return words extracted. We use this in some tests.