org.jpedal.examples.contentextractor
Class ContentExtractor

java.lang.Object
  extended by org.jpedal.examples.simpleviewer.SimpleViewer
      extended by org.jpedal.examples.contentextractor.ContentExtractor

public class ContentExtractor
extends SimpleViewer

Example client application to extract text and image from any rectangular area on page using JPedal (for example ad extraction) (Assumes content is in single column) Notes: currentGUI.getFrame() example uses some "unofficial" classes inside the library which may alter in function


Nested Class Summary
 class ContentExtractor.ButtonPopup
          popup the ads with image and text when icon clicked
 
Field Summary
 
Fields inherited from class org.jpedal.examples.simpleviewer.SimpleViewer
currentGUI, exitOnClose, PREFERENCES_BEAN, PREFERENCES_DEFAULT, PREFERENCES_NO_GUI, PREFERENCES_NO_SIDE_BAR, PREFERENCES_OPEN_AND_NAV_ONLY, PREFERENCES_PDFHELP
 
Constructor Summary
ContentExtractor()
           
 
Method Summary
static void main(java.lang.String[] args)
          main method to run the software
 void setupViewer()
          setup the display and pop-up a viewer window
 void writeXML(java.lang.String xml, java.lang.String target, int id, int currentPage)
          write out a story to disk.
 
Methods inherited from class org.jpedal.examples.simpleviewer.SimpleViewer
executeCommand, getSwingGUI, isProcessing, setRootContainer, setupViewer
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentExtractor

public ContentExtractor()
Method Detail

main

public static void main(java.lang.String[] args)
main method to run the software


setupViewer

public void setupViewer()
setup the display and pop-up a viewer window

Overrides:
setupViewer in class SimpleViewer

writeXML

public void writeXML(java.lang.String xml,
                     java.lang.String target,
                     int id,
                     int currentPage)
              throws java.lang.Exception
write out a story to disk. Set textData to null if you are in automated mode.

Throws:
java.lang.Exception