com.lowagie.text

Class ImgPostscript

public class ImgPostscript extends Image

An ImgPostscript is the representation of an EPS that has to be inserted into the document

See Also: Element Image

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

Constructor Detail

ImgPostscript

ImgPostscript(Image image)

ImgPostscript

public ImgPostscript(byte[] content, float width, float height)

ImgPostscript

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

Parameters: url the URL where the image can be found

Throws: BadElementException on error IOException on error

ImgPostscript

public ImgPostscript(String filename)
Constructs an ImgPostscript-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

ImgPostscript

public ImgPostscript(byte[] img)
Constructs an ImgPostscript-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 Postscript and processes some parameters.

Throws: BadElementException IOException

readPostscript

public void readPostscript(PdfTemplate template)
Reads the Postscript into a template.

Parameters: template the template to read to

Throws: IOException on error DocumentException on error