Edit this page

svg

Returns the SVG representation of the qrcode. The returned string is a self-contained SVG document that can be used as is or converted to other formats using tools like Inkscape and ImageMagick. Both programs provide command-line interface suitable for server-side processing.

This method is obsoleted by exportSVG, but will remain fully functional.

Returns

String the SVG representation of the qrcode.

Example - get the SVG representation of the qrcode

<div id="qrcode"></div>
<script>
$("#qrcode").kendoQRCode({
  value:"Some value"
});
var qrcode = $("#qrcode").data("kendoQRCode");
var svg = qrcode.svg();
console.log(svg); // displays the SVG string
</script>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy