pdf.proxyURLString
(default: null)
The URL of the server side proxy which will stream the file to the end user.
When the browser is not capable of saving files locally, a proxy will be used. Such browsers are Internet Explorer version 9 (and older) and Safari. You are responsible for implementing the server-side proxy. The proxy receives a POST
request with the following parameters in the request body:
contentType
- The MIME type of the filebase64
- The base-64 encoded file contentfileName
- The file name, as requested by the caller.
The proxy is expected to return the decoded file with a set Content-Disposition
header.
You can see sample server proxy implementations here: Server Proxy Implementations.
Example - setting the server proxy URL
<div id="diagram"></div>
<script>
$("#diagram").kendoDiagram({
pdf: {
proxyURL: "/save"
},
dataSource: {
data: [{ "items": [{ items: [{}] }] }],
schema: { model: { children: "items" } }
},
layout: {
type: "tree"
}
});
var diagram = $("#diagram").getKendoDiagram();
diagram.saveAsPDF();
</script>
In this article