public class PrintTextLocations
extends org.apache.pdfbox.util.PDFTextStripper
| Constructor and Description |
|---|
PrintTextLocations()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args)
This will print the documents data.
|
protected void |
processTextPosition(org.apache.pdfbox.util.TextPosition text)
A method provided as an event interface to allow a subclass to perform
some specific functionality when text needs to be processed.
|
endArticle, endDocument, endPage, getAddMoreFormatting, getArticleEnd, getArticleStart, getAverageCharTolerance, getCharactersByArticle, getCurrentPageNo, getDropThreshold, getEndBookmark, getEndPage, getIndentThreshold, getLineSeparator, getListItemPatterns, getOutput, getPageEnd, getPageSeparator, getPageStart, getParagraphEnd, getParagraphStart, getSeparateByBeads, getSortByPosition, getSpacingTolerance, getStartBookmark, getStartPage, getSuppressDuplicateOverlappingText, getText, getText, getWordSeparator, handleLineSeparation, inspectFontEncoding, isParagraphSeparation, matchListItemPattern, matchPattern, processPage, processPages, resetEngine, setAddMoreFormatting, setArticleEnd, setArticleStart, setAverageCharTolerance, setDropThreshold, setEndBookmark, setEndPage, setIndentThreshold, setLineSeparator, setListItemPatterns, setPageEnd, setPageSeparator, setPageStart, setParagraphEnd, setParagraphStart, setShouldSeparateByBeads, setSortByPosition, setSpacingTolerance, setStartBookmark, setStartPage, setSuppressDuplicateOverlappingText, setWordSeparator, startArticle, startArticle, startDocument, startPage, writeCharacters, writeLineSeparator, writePage, writePageEnd, writePageSeperator, writePageStart, writeParagraphEnd, writeParagraphSeparator, writeParagraphStart, writeString, writeText, writeText, writeWordSeparatorgetColorSpaces, 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, setTextMatrixpublic PrintTextLocations()
throws IOException
IOException - If there is an error loading text stripper properties.public static void main(String[] args) throws Exception
args - The command line arguments.Exception - If there is an error parsing the document.protected void processTextPosition(org.apache.pdfbox.util.TextPosition text)
processTextPosition in class org.apache.pdfbox.util.PDFTextStrippertext - The text to be processedCopyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.