public class DrawPrintTextLocations
extends org.apache.pdfbox.text.PDFTextStripper
| Constructor and Description |
|---|
DrawPrintTextLocations(org.apache.pdfbox.pdmodel.PDDocument document,
String filename)
Instantiate a new PDFTextStripper object.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args)
This will print the documents data.
|
protected void |
showGlyph(org.apache.pdfbox.util.Matrix textRenderingMatrix,
org.apache.pdfbox.pdmodel.font.PDFont font,
int code,
String unicode,
org.apache.pdfbox.util.Vector displacement) |
protected void |
writeString(String string,
List<org.apache.pdfbox.text.TextPosition> textPositions)
Override the default functionality of PDFTextStripper.
|
endArticle, endDocument, endPage, getAddMoreFormatting, getArticleEnd, getArticleStart, getAverageCharTolerance, getCharactersByArticle, getCurrentPageNo, getDropThreshold, getEndBookmark, getEndPage, getIndentThreshold, getLineSeparator, getListItemPatterns, getOutput, getPageEnd, getPageStart, getParagraphEnd, getParagraphStart, getSeparateByBeads, getSortByPosition, getSpacingTolerance, getStartBookmark, getStartPage, getSuppressDuplicateOverlappingText, getText, getWordSeparator, matchPattern, processPage, processPages, processTextPosition, setAddMoreFormatting, setArticleEnd, setArticleStart, setAverageCharTolerance, setDropThreshold, setEndBookmark, setEndPage, setIndentThreshold, setLineSeparator, setListItemPatterns, setPageEnd, setPageStart, setParagraphEnd, setParagraphStart, setShouldSeparateByBeads, setSortByPosition, setSpacingTolerance, setStartBookmark, setStartPage, setSuppressDuplicateOverlappingText, setWordSeparator, startArticle, startArticle, startDocument, startPage, writeCharacters, writeLineSeparator, writePage, writePageEnd, writePageStart, writeParagraphEnd, writeParagraphSeparator, writeParagraphStart, writeString, writeText, writeWordSeparatoraddOperator, applyTextAdjustment, beginText, endText, getAppearance, getCurrentPage, getGraphicsStackSize, getGraphicsState, getInitialMatrix, getResources, getTextLineMatrix, getTextMatrix, operatorException, processAnnotation, processChildStream, processOperator, processOperator, processSoftMask, processTilingPattern, processTilingPattern, processTransparencyGroup, processType3Stream, registerOperatorProcessor, restoreGraphicsStack, restoreGraphicsState, saveGraphicsStack, saveGraphicsState, setLineDashPattern, setTextLineMatrix, setTextMatrix, showAnnotation, showFontGlyph, showForm, showText, showTextString, showTextStrings, showTransparencyGroup, showType3Glyph, transformedPoint, transformWidth, unsupportedOperatorpublic DrawPrintTextLocations(org.apache.pdfbox.pdmodel.PDDocument document,
String filename)
throws IOException
document - filename - IOException - If there is an error loading the properties.public static void main(String[] args) throws IOException
args - The command line arguments.IOException - If there is an error parsing the document.protected void showGlyph(org.apache.pdfbox.util.Matrix textRenderingMatrix,
org.apache.pdfbox.pdmodel.font.PDFont font,
int code,
String unicode,
org.apache.pdfbox.util.Vector displacement)
throws IOException
IOExceptionprotected void writeString(String string, List<org.apache.pdfbox.text.TextPosition> textPositions) throws IOException
writeString in class org.apache.pdfbox.text.PDFTextStripperIOExceptionCopyright © 2002–2018 The Apache Software Foundation. All rights reserved.