|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pdfbox.util.PDFStreamEngine
org.pdfbox.util.PDFTextStripper
org.pdfbox.examples.util.PrintTextLocations
public class PrintTextLocations
This is an example on how to get some x/y coordinates of text. Usage: java org.pdfbox.examples.util.PrintTextLocations <input-pdf>
| Field Summary |
|---|
| Fields inherited from class org.pdfbox.util.PDFTextStripper |
|---|
charactersByArticle, output |
| Constructor Summary | |
|---|---|
PrintTextLocations()
Default constructor. |
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
This will print the documents data. |
protected void |
showCharacter(TextPosition text)
A method provided as an event interface to allow a subclass to perform some specific functionality when a character needs to be displayed. |
| Methods inherited from class org.pdfbox.util.PDFStreamEngine |
|---|
getColorSpaces, getCurrentPage, getFonts, getGraphicsStack, getGraphicsState, getGraphicsStates, getResources, getTextLineMatrix, getTextMatrix, getXObjects, processOperator, processOperator, processStream, processSubStream, registerOperatorProcessor, resetEngine, setColorSpaces, setFonts, setGraphicsStack, setGraphicsState, setGraphicsStates, setTextLineMatrix, setTextMatrix, showString |
| 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 showCharacter(TextPosition text)
showCharacter in class PDFTextStrippertext - The character to be displayed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||