Edit this page

pdf.proxyURL String (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 file
  • base64 - The base-64 encoded file content
  • fileName - 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>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy