@Override public int processImage(String name,final int dataPointer,final PdfObject XObject) throws PdfException {
  String key=null;
  if (ImageCommands.rejectSuperimposedImages) {
    key=((int)gs.CTM[2][0]) + "-" + ((int)gs.CTM[2][1])+ '-'+ ((int)gs.CTM[0][0])+ '-'+ ((int)gs.CTM[1][1])+ '-'+ ((int)gs.CTM[0][1])+ '-'+ ((int)gs.CTM[1][0]);
  }
  try {
    if (System.getProperty("testsDisableImages") == null) {
      processXImage(name,name,key,XObject);
    }
  }
 catch (  final Error e) {
    LogWriter.writeLog("Error: " + e.getMessage());
    parserOptions.imagesProcessedFully=false;
    errorTracker.addPageFailureMessage("Error " + e + " in DO");
  }
catch (  final Exception e) {
    LogWriter.writeLog("Exception " + e);
    parserOptions.imagesProcessedFully=false;
    errorTracker.addPageFailureMessage("Error " + e + " in DO");
  }
  return dataPointer;
}

@ Override public int processImage ( String name , final int dataPointer , final PdfObject XObject ) throws PdfException { String key = null ; if ( ImageCommands . rejectSuperimposedImages ) { key = ( ( int ) gs . CTM [ 2 ] [ 0 ] ) + "-" + ( ( int ) gs . CTM [ 2 ] [ 1 ] ) + '-' + ( ( int ) gs . CTM [ 0 ] [ 0 ] ) + '-' + ( ( int ) gs . CTM [ 1 ] [ 1 ] ) + '-' + ( ( int ) gs . CTM [ 0 ] [ 1 ] ) + '-' + ( ( int ) gs . CTM [ 1 ] [ 0 ] ) ; } try { if ( System . getProperty ( "testsDisableImages" ) == null ) { processXImage ( name , name , key , XObject ) ; } } catch ( final Error e ) { LogWriter . writeLog ( "Error: " + e . getMessage ( ) ) ; parserOptions . imagesProcessedFully = false ; errorTracker . addPageFailureMessage ( "Error " + e + " in DO" ) ; } catch ( final Exception e ) { LogWriter . writeLog ( "Exception " + e ) ; parserOptions . imagesProcessedFully = false ; errorTracker . addPageFailureMessage ( "Error " + e + " in DO" ) ; } return dataPointer ; }
process image in xobject ( xform handled in pdfstreamdecoder )
