// Is the page's resource an image?
if(xObject instanceof ImageXObject)
{
System.out.println("Substituting " + xObjectKey + " image xobject.");
xObjects.put(xObjectKey,imageXObject);
xObjects.update();
}
}
/* for(Map.Entry<PdfName,XObject> xObjectEntry : xObjects.entrySet())
{
if(xObjectEntry.getValue() instanceof ImageXObject)