ChartDirector 5.1 (PHP Edition)

DrawArea.outSVG


Usage

outSVG(filename [, options ])

Description

Writes the DrawArea to a SVG or SVGZ image file.

Note: To output true vector graphics in SVG or SVGZ format, please ensure DrawArea.enableVectorOutput is called immediately after creating the DrawArea object. Otherwise the output will be a bitmap image embedded in SVG or SVGZ.

Arguments

ArgumentDefaultDescription
filename(Mandatory)The filename of the output image file.
options""A text string specifying optional parameters for the SVG output. Currently, the only supported text string is "compress", which means to create a SVGZ (compressed SVG) instead of a regular SVG.

Return Value

A true (non-zero) value indicates no error. A false (zero) value indicates the operation is unsuccessful.