exportPDF

Exports the diagram content as a PDF file. The result can be saved using kendo.saveAs.

The export operation is asynchronous and returns a promise. The promise will be resolved with a PDF file encoded as a Data URI.

Parameters

options kendo.drawing.PDFOptions (optional)Parameters for the exported PDF file.

Returns

Promise A promise that will be resolved with a PDF file encoded as a Data URI.

Example - Exporting a diagram to a PDF file

<div id="diagram"></div>
<script>
    $("#diagram").kendoDiagram({
      dataSource: {
          data: [{ "items": [{ items: [{}] }] }],
          schema: { model: { children: "items" } }
      },
      layout: {
          type: "tree"
      }
    });

    var diagram = $("#diagram").getKendoDiagram();
    diagram.exportPDF().done(function(data) {
        kendo.saveAs({
            dataURI: data,
            fileName: "diagram.pdf"
        });
    });
</script>
In this article
Not finding the help you need?