org.pdfbox.examples.util

Class PrintImageLocations


public class PrintImageLocations
extends PDFStreamEngine

This is an example on how to get the x/y coordinates of image locations. Usage: java org.pdfbox.examples.util.PrintImageLocations <input-pdf>
Version:
$Revision: 1.3 $
Author:
Ben Litchfield

Constructor Summary

PrintImageLocations()
Default constructor.

Method Summary

static void
main(String[] args)
This will print the documents data.
protected void
processOperator(PDFOperator operator, List arguments)
This is used to handle an operation.

Methods inherited from class org.pdfbox.util.PDFStreamEngine

getColorSpaces, getCurrentPage, getFonts, getGraphicsStack, getGraphicsState, getGraphicsStates, getResources, getTextLineMatrix, getTextMatrix, getXObjects, processOperator, processOperator, processStream, processSubStream, registerOperatorProcessor, resetEngine, setColorSpaces, setFonts, setGraphicsStack, setGraphicsState, setGraphicsStates, setTextLineMatrix, setTextMatrix, showCharacter, showString

Constructor Details

PrintImageLocations

public PrintImageLocations()
            throws IOException
Default constructor.

Method Details

main

public static void main(String[] args)
            throws Exception
This will print the documents data.
Parameters:
args - The command line arguments.

processOperator

protected void processOperator(PDFOperator operator,
                               List arguments)
            throws IOException
This is used to handle an operation.
Overrides:
processOperator in interface PDFStreamEngine
Parameters:
operator - The operation to perform.
arguments - The list of arguments.