|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pdfbox.util.PDFStreamEngine
org.apache.pdfbox.util.PDFTextStripper
org.apache.pdfbox.examples.util.PrintTextLocations
public class 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>
Field Summary |
---|
Fields inherited from class org.apache.pdfbox.util.PDFTextStripper |
---|
charactersByArticle, document, output, outputEncoding, systemLineSeparator |
Constructor Summary | |
---|---|
PrintTextLocations()
Default constructor. |
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
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. |
Methods inherited from class org.apache.pdfbox.util.PDFStreamEngine |
---|
getColorSpaces, getCurrentPage, getFonts, getGraphicsStack, getGraphicsState, getGraphicsStates, getResources, getTextLineMatrix, getTextMatrix, getTotalCharCnt, getValidCharCnt, getXObjects, isForceParsing, processEncodedText, processOperator, processOperator, processStream, processSubStream, registerOperatorProcessor, setColorSpaces, setFonts, setForceParsing, setGraphicsStack, setGraphicsState, setGraphicsStates, setTextLineMatrix, setTextMatrix |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PrintTextLocations() throws java.io.IOException
java.io.IOException
- If there is an error loading text stripper properties.Method Detail |
---|
public static void main(java.lang.String[] args) throws java.lang.Exception
args
- The command line arguments.
java.lang.Exception
- If there is an error parsing the document.protected void processTextPosition(TextPosition text)
processTextPosition
in class PDFTextStripper
text
- The text to be processed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |