Package org.apache.pdfbox.examples.util
Class PrintImageLocations
java.lang.Object
org.apache.pdfbox.contentstream.PDFStreamEngine
org.apache.pdfbox.examples.util.PrintImageLocations
This is an example on how to get the x/y coordinates of image locations.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.pdfbox.contentstream.PDFStreamEngine
addOperator, applyTextAdjustment, beginMarkedContentSequence, beginText, decreaseLevel, endMarkedContentSequence, endText, getAppearance, getCurrentPage, getGraphicsStackSize, getGraphicsState, getInitialMatrix, getLevel, getResources, getTextLineMatrix, getTextMatrix, increaseLevel, operatorException, processAnnotation, processChildStream, processOperator, processPage, processSoftMask, processTilingPattern, processTilingPattern, processTransparencyGroup, processType3Stream, restoreGraphicsStack, restoreGraphicsState, saveGraphicsStack, saveGraphicsState, setLineDashPattern, setTextLineMatrix, setTextMatrix, showAnnotation, showFontGlyph, showForm, showGlyph, showText, showTextString, showTextStrings, showTransparencyGroup, showType3Glyph, transformedPoint, transformWidth, unsupportedOperator
-
Constructor Details
-
PrintImageLocations
Default constructor.- Throws:
IOException- If there is an error loading text stripper properties.
-
-
Method Details
-
main
This will print the documents data.- Parameters:
args- The command line arguments.- Throws:
IOException- If there is an error parsing the document.
-
processOperator
This is used to handle an operation.- Overrides:
processOperatorin classPDFStreamEngine- Parameters:
operator- The operation to perform.operands- The list of arguments.- Throws:
IOException- If there is an error processing the operation.
-
usage
private static void usage()This will print the usage for this document.
-