Changing the Image Format

Search in Corda 7.3 Documentation

Although Corda 7's default image type is Adobe Flash, it can serve images in a variety of formats, including SVG, PNG, JPEG, PDF, EPS, EMF, and TIFF. For more information, see Image Formats.

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

For information about setting the default format, see Changing Default Generation Settings.

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

myImage.outputType = "FLASH";

The outputType must be an uppercase 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());

Labels:

released released Delete
Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.