return;
}
if (o instanceof URLImageContainer)
{
final URLImageContainer imageContainer = (URLImageContainer) o;
com.lowagie.text.Image instance = imageHandler.createImage(imageContainer);
if (instance != null)
{
try
{
ResourceManager resourceManager = getResourceManager();
ResourceKey resource = imageContainer.getResourceKey();
final Resource imageWrapped = resourceManager.create(resource, null, Image.class);
final Image image = (Image) imageWrapped.getResource();
if (drawImage(content, image, instance))
{
drawImageMap(content);
}
return;
}
catch (Exception e)
{
PdfLogicalPageDrawable.logger.info("URL-image cannot be rendered, as the image was not loadable.", e);
}
}
}
if (o instanceof LocalImageContainer)
{
final LocalImageContainer imageContainer = (LocalImageContainer) o;
final Image image = imageContainer.getImage();
if (drawImage(content, image))
{
drawImageMap(content);
}
}