Class PrintImageLocations


  • public class PrintImageLocations
    extends PDFStreamEngine
    This is an example on how to get the x/y coordinates of image locations.
    • Constructor Detail

      • PrintImageLocations

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

      • main

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

        protected void processOperator​(Operator operator,
                                       java.util.List<COSBase> operands)
                                throws java.io.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:
        java.io.IOException - If there is an error processing the operation.
      • usage

        private static void usage()
        This will print the usage for this document.