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

Exporting Drawings to SVG

Updated over 6 months ago

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.

 <script> 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(); root.append(path); draw.exportSVG(root).done(function(data) { kendo.saveAs({ dataURI: data, fileName: "frame.svg" }); }); </script>

See Also

In this article
See Also
Not finding the help you need?
Contact Support