// No external object resources collection?
if(xObjects == null)
{
// Create the external object resources collection!
xObjects = new XObjectResources(scanner.getContents().getDocument());
resources.setXObjects(xObjects); resources.update();
}
// Get the key associated to the external object!
PdfName name = xObjects.getBaseDataObject().getKey(value.getBaseObject());
// No key found?
if(name == null)