Home » pdfbox-1.1.0-src » org.apache.pdfbox.examples.util » [javadoc | source]
org.apache.pdfbox.examples.util
public class: PrintTextLocations [javadoc | source]
java.lang.Object
   org.apache.pdfbox.util.PDFStreamEngine
      org.apache.pdfbox.util.PDFTextStripper
         org.apache.pdfbox.examples.util.PrintTextLocations
This is an example on how to get some x/y coordinates of text. Usage: java org.apache.pdfbox.examples.util.PrintTextLocations <input-pdf>
Fields inherited from org.apache.pdfbox.util.PDFTextStripper:
charactersByArticle,  lineSeparator,  outputEncoding,  document,  output
Constructor:
 public PrintTextLocations() throws IOException 
    Default constructor.
    Throws:
    IOException - If there is an error loading text stripper properties.
Method from org.apache.pdfbox.examples.util.PrintTextLocations Summary:
main,   processTextPosition
Methods from org.apache.pdfbox.util.PDFTextStripper:
endArticle,   endDocument,   endPage,   getAverageCharTolerance,   getCharactersByArticle,   getCurrentPageNo,   getEndBookmark,   getEndPage,   getLineSeparator,   getOutput,   getPageSeparator,   getSpacingTolerance,   getStartBookmark,   getStartPage,   getText,   getText,   getWordSeparator,   processPage,   processPages,   processTextPosition,   setAverageCharTolerance,   setEndBookmark,   setEndPage,   setLineSeparator,   setPageSeparator,   setShouldSeparateByBeads,   setSortByPosition,   setSpacingTolerance,   setStartBookmark,   setStartPage,   setSuppressDuplicateOverlappingText,   setWordSeparator,   shouldSeparateByBeads,   shouldSortByPosition,   shouldSuppressDuplicateOverlappingText,   startArticle,   startArticle,   startDocument,   startPage,   writeCharacters,   writeLineSeparator,   writePage,   writePageSeperator,   writeString,   writeText,   writeText,   writeWordSeparator
Methods from org.apache.pdfbox.util.PDFStreamEngine:
getColorSpaces,   getCurrentPage,   getFonts,   getGraphicsStack,   getGraphicsState,   getGraphicsStates,   getResources,   getTextLineMatrix,   getTextMatrix,   getTotalCharCnt,   getValidCharCnt,   getXObjects,   processEncodedText,   processOperator,   processOperator,   processStream,   processSubStream,   processTextPosition,   registerOperatorProcessor,   resetEngine,   setColorSpaces,   setFonts,   setGraphicsStack,   setGraphicsState,   setGraphicsStates,   setTextLineMatrix,   setTextMatrix
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.pdfbox.examples.util.PrintTextLocations Detail:
 public static  void main(String[] args) throws Exception 
    This will print the documents data.
 protected  void processTextPosition(TextPosition text) 
    A method provided as an event interface to allow a subclass to perform some specific functionality when text needs to be processed.