org.apache.pdfbox.examples.util
Class PrintImageLocations
java.lang.Object
org.apache.pdfbox.util.PDFStreamEngine
org.apache.pdfbox.examples.util.PrintImageLocations
public class PrintImageLocations
- extends PDFStreamEngine
This is an example on how to get the x/y coordinates of image locations.
Usage: java org.apache.pdfbox.examples.util.PrintImageLocations <input-pdf>
- Version:
- $Revision: 1.5 $
- Author:
- Ben Litchfield
Methods inherited from class org.apache.pdfbox.util.PDFStreamEngine |
getColorSpaces, getCurrentPage, getFonts, getGraphicsStack, getGraphicsState, getGraphicsStates, getResources, getTextLineMatrix, getTextMatrix, getTotalCharCnt, getValidCharCnt, getXObjects, inspectFontEncoding, processEncodedText, processOperator, processStream, processSubStream, processTextPosition, registerOperatorProcessor, resetEngine, setColorSpaces, setFonts, setGraphicsStack, setGraphicsState, setGraphicsStates, setTextLineMatrix, setTextMatrix |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PrintImageLocations
public PrintImageLocations()
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.
processOperator
protected void processOperator(PDFOperator operator,
List arguments)
throws IOException
- This is used to handle an operation.
- Overrides:
processOperator
in class PDFStreamEngine
- Parameters:
operator
- The operation to perform.arguments
- The list of arguments.
- Throws:
IOException
- If there is an error processing the operation.
Copyright © 2002-2010 The Apache Software Foundation. All Rights Reserved.