pdf.forceProxyBoolean
(default: false)
If set to true
, the exported content is forwarded to the endpoint specified using the proxyURL
setting, even if the browser supports saving of files in the user's local file system.
Example
pseudo
<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
shapes: [
{ id: "1", x: 100, y: 100, content: { text: "Shape 1" } }
],
pdf: {
forceProxy: true,
proxyURL: "/Home/ExportDiagram"
}
});
var diagram = $("#diagram").getKendoDiagram();
diagram.saveAsPDF();
</script>
In this article