Show TOC

Function documentationSVG Renderer Locate this document in the navigation structure

 

You use this action to take a Scalable Vector Graphics (SVG) document and generate an image that represents the rendered drawing in a supported image format.

Features

Since an SVG document is an XML document, you can use other functions to load and manipulate the XML document before it is rendered. For example, you can create a generic shipping label as an SVG drawing using any SVG-compatible drawing tools.

You can load the resulting SVG using the XML Loader action and manipulate it as needed. For example, you can specify a bar code number, customer name, material code, and so on. The system passes the modified SVG to the SVG Renderer action to convert it to an image that can be printed or e-mailed.

You can change the image output type to .png, .gif, or .jpeg and do the following:

  • Send the image as a transaction output

  • Output it as XML for client-side rendering through an SVG plug-in

  • Save it as a static image with an Image Saver action

Once saved, you can use it as an image in a Web page or report.

See also:

Animated Objects

The properties for this action are listed in the following table:

Property

Data Type

Access

Use

Input

XML

In and out

The SVG-type XML document used to create an image through server-side rendering.

ImageFormat

String

In and out

The image type to save. The options are image/png, image/gif, and image/jpeg.

EncodedImage

String

Out

The image encoded as a string.

Success

Boolean

Out

Indicates whether the action succeeded or failed. If it failed, errors are displayed in the server trace log.