org.pdfbox.examples.util
Class PrintTextLocations
java.lang.Object
org.pdfbox.util.PDFStreamEngine
org.pdfbox.util.PDFTextStripper
org.pdfbox.examples.util.PrintTextLocations
- public class PrintTextLocations
- extends PDFTextStripper
This is an example on how to get some x/y coordinates of text.
Usage: java org.pdfbox.examples.util.PrintTextLocations <input-pdf>
- Version:
- $Revision: 1.2 $
- Author:
- Ben Litchfield (ben@benlitchfield.com)
|
Method Summary |
static void |
main(String[] args)
This will print the documents data. |
| Methods inherited from class org.pdfbox.util.PDFTextStripper |
getEndBookmark, getEndPage, getLineSeparator, getPageSeparator, getStartBookmark, getStartPage, getText, getText, getText, getWordSeparator, setEndBookmark, setEndPage, setFirstPageRotation, setGetFirstPageRotationFromThis, setLineSeparator, setPageSeparator, setShouldSeparateByBeads, setSortByPosition, setStartBookmark, setStartPage, setSuppressDuplicateOverlappingText, setWordSeparator, shouldSeparateByBeads, shouldSortByPosition, shouldSuppressDuplicateOverlappingText, writeText, writeText |
| Methods inherited from class org.pdfbox.util.PDFStreamEngine |
getColorSpaces, getCurrentPage, getFonts, getGraphicsStack, getGraphicsState, getGraphicsStates, getResources, getTextLineMatrix, getTextMatrix, getXObjects, processOperator, processStream, processSubStream, setColorSpaces, setFonts, setGraphicsStack, setGraphicsState, setGraphicsStates, setTextLineMatrix, setTextMatrix, showString |
PrintTextLocations
public PrintTextLocations()
throws IOException
- Default constructor.
- Throws:
IOException - If there is an error loading text stripper properties.
main
public static void main(String[] args)
throws Exception
- This will print the documents data.
- Parameters:
args - The command line arguments.
- Throws:
Exception - If there is an error parsing the document.
Copyright null EGIZ - E-Government Innovation Center. All Rights Reserved.