Disabling Hyperlinks
By default, the drawDOM
method creates clickable hyperlinks in the generated PDF document.
You can disable this behavior with the avoidLinks
option.
<div id="content">
This is <a href="https://www.telerik.com">a non-clickable link</a>.
</div>
<script>
var draw = kendo.drawing;
draw.drawDOM($("#content"), {
avoidLinks: true,
paperSize: "A4"
})
.then(function(root) {
return draw.exportPDF(root);
})
.done(function(data) {
kendo.saveAs({
dataURI: data,
fileName: "avoid-links.pdf"
});
});
</script>