Class PrintImageLocations

java.lang.Object
org.apache.pdfbox.contentstream.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.
  • Constructor Details

    • PrintImageLocations

      public PrintImageLocations() throws IOException
      Default constructor.
      Throws:
      IOException - If there is an error loading text stripper properties.
  • Method Details

    • main

      public static void main(String[] args) throws IOException
      This will print the documents data.
      Parameters:
      args - The command line arguments.
      Throws:
      IOException - If there is an error parsing the document.
    • processOperator

      protected void processOperator(Operator operator, List<COSBase> operands) throws IOException
      This is used to handle an operation.
      Overrides:
      processOperator in class PDFStreamEngine
      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.