getImage
public com.lowagie.text.Image getImage(ImageContainer reference)
throws com.lowagie.text.DocumentException,
IOException
Helperfunction to extract an image from an imagereference. If the image is contained as java.awt.Image object only,
the image is recoded into an PNG-Image.
- Parameters:
reference
- the image reference.
- Returns:
- an image.
- Throws:
com.lowagie.text.DocumentException
- if no PDFImageElement could be created using the given ImageReference.
IOException
- if the image could not be read.