com.lowagie.text

Class ImgWMF

public class ImgWMF extends Image

An ImgWMF is the representation of a windows metafile that has to be inserted into the document

See Also: Element Image

Constructor Summary
ImgWMF(Image image)
ImgWMF(URL url)
Constructs an ImgWMF-object, using an url.
ImgWMF(String filename)
Constructs an ImgWMF-object, using a filename.
ImgWMF(byte[] img)
Constructs an ImgWMF-object from memory.
Method Summary
voidprocessParameters()
This method checks if the image is a valid WMF and processes some parameters.
voidreadWMF(PdfTemplate template)
Reads the WMF into a template.

Constructor Detail

ImgWMF

ImgWMF(Image image)

ImgWMF

public ImgWMF(URL url)
Constructs an ImgWMF-object, using an url.

Parameters: url the URL where the image can be found

Throws: BadElementException on error IOException on error

ImgWMF

public ImgWMF(String filename)
Constructs an ImgWMF-object, using a filename.

Parameters: filename a String-representation of the file that contains the image.

Throws: BadElementException on error MalformedURLException on error IOException on error

ImgWMF

public ImgWMF(byte[] img)
Constructs an ImgWMF-object from memory.

Parameters: img the memory image

Throws: BadElementException on error IOException on error

Method Detail

processParameters

private void processParameters()
This method checks if the image is a valid WMF and processes some parameters.

Throws: BadElementException IOException

readWMF

public void readWMF(PdfTemplate template)
Reads the WMF into a template.

Parameters: template the template to read to

Throws: IOException on error DocumentException on error