SVG

Only available with Corda® 7 Enterprise.

Scalable Vector Graphics (SVG*) is a XML-based image format created and adopted by the World Wide Web Consortium (W3C) as the standard for vector graphic images. SVG images can be zoomed in and out without losing any details and have smaller file size than do JPEG, Flash*, or PNG images. SVG makes possible high-resolution printing, animation, drilldown, rollover, and hover text along with other special effects. SVG is an open standard.

More information about the SVG format is available from Adobe's Web site at http://www.adobe.com/svg/. Adobe provides a Web browser plug-in to add SVG support to those Web browsers that do not support it. Firefox 1.5 and later Web browsers include native support for SVG graphics, but this support is not as robust as that provided by the Adobe plug-in.

Note: With Best Image Fallback, have the user's Web browser dynamically decide what image format to display. In this case, it probably does not matter if you choose Flash or SVG as the format of the Corda image. The user sees the Corda image in JPEG format if he or she doesn't have the Flash or SVG plug-in. For more information, see Best Image Fallback in the Corda 7 Developer Reference.

embedding an SVG Image using Corda Embedder

Generate a SVG Corda image by setting the Corda Embedder outputType attribute to "SVG." For example, assuming the Corda Embedder object is named myImage, you use the following command to set the image format to SVG:

myImage.outputType = "SVG";

When trying to generate a SVG image in a format that can be processed by Apache* FOP (Formatted Object Processor), set the outputType attribute to "SVGFOP" instead.

embedding an SVG Image Using HTML

Generate a SVG Corda image using the @_SVG server command. For example, the following HTTP request generates a SVG Corda image:

http://<server_address>:2001/?@_FILEexamples/bar.itxml@_SVG

SVG images can be embedded into Web pages using an <embed> tag and the @_SVG server command. You must also specify the width and the height of the image in the <embed> tag.

<embed type="image/svg-xml" pluginspage="http://www.adobe.com/svg/viewer/install/main.html" width="600" height="400" src="http://<server_address>:2001/?@_FILEexamples/bar.itxml@_HEIGHT400@_WIDTH600@_SVG">
</embed>

When trying to generate a SVG image in a format that can be processed by Apache FOP (Formatted Object Processor), use the @_SVGFOP command instead.