org.pdfbox.examples.util
Class 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>
static void | main(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.
|
endDocument, endPage, endParagraph, flushText, getCharactersByArticle, getCurrentPageNo, getEndBookmark, getEndPage, getLineSeparator, getOutput, getPageSeparator, getStartBookmark, getStartPage, getText, getText, getWordSeparator, processPage, processPages, setEndBookmark, setEndPage, setLineSeparator, setPageSeparator, setShouldSeparateByBeads, setSortByPosition, setStartBookmark, setStartPage, setSuppressDuplicateOverlappingText, setWordSeparator, shouldSeparateByBeads, shouldSortByPosition, shouldSuppressDuplicateOverlappingText, showCharacter, startDocument, startPage, startParagraph, writeCharacters, writeText, writeText |
getColorSpaces, getCurrentPage, getFonts, getGraphicsStack, getGraphicsState, getGraphicsStates, getResources, getTextLineMatrix, getTextMatrix, getXObjects, processOperator, processOperator, processStream, processSubStream, registerOperatorProcessor, resetEngine, setColorSpaces, setFonts, setGraphicsStack, setGraphicsState, setGraphicsStates, setTextLineMatrix, setTextMatrix, showCharacter, showString |
PrintTextLocations
public PrintTextLocations()
throws IOException Default constructor.
main
public static void main(String[] args)
throws Exception This will print the documents data.
args - The command line arguments.
showCharacter
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.
- showCharacter in interface PDFTextStripper
text - The character to be displayed.