New to Kendo UI for jQuery? Download free 30-day trial

Exporting Drawings to SVG

The Drawing library supports the export of drawings to a Scalable Vector Graphics (SVG) document.

The SVG format is a text-based, resolution-independent image format. It is well-suited for post-processing and archiving.

        var draw = kendo.drawing;
        var geom = kendo.geometry;

        var rect = new geom.Rect([5, 5], [240, 240]);
        var path = draw.Path.fromRect(rect).stroke("red", 5);

        var root = new draw.Group();

        draw.exportSVG(root).done(function(data) {
                dataURI: data,
                fileName: "frame.svg"

See Also

In this article