Changing the Image Format

Although Corda® 7's default image type is Flash*, Corda 7 can serve images in a variety of formats, including SVG*, PNG, JPEG, PDF, EPS, EMF and TIFF. For more information about these image formats, see Image Formats in the Corda Builder™ User Guide.

Note: PDF, TIFF, EMF, or EPS image types are only supported in Corda 7 Enterprise .

For information about setting the default format, see Changing Default Generation Settings in the Corda 7 Install and Administration manual.

To specify the image format, use the outputType attribute of the Corda Embedder. For example:

myImage.outputType = "FLASH";

The outputType must be an upper-case string containing the image format name, such as "FLASH" or "PDF".

Example: Changing the Image Type

myImage = new CordaEmbedder();

myImage.imageTemplate = "image_templates\examples\bar.itxml";

myImage.width = 600;

myImage.height = 400;

myImage.outputType = "SVG";

document.writeln(myImage.getEmbeddingHTML());