New to Kendo UI for jQuery? Download free 30-day trial

PDF Export

The PivotGridV2 provides a built-in PDF export functionality.

General

  • To export the PivotGridV2, call the saveAsPDF() method of the component.

    <button id="export" class="k-button k-button-icontext"><span class="k-icon k-i-pdf"></span>Export to PDF</button>
    <div id="pivotgrid"></div>
    
    <script>
        // PivotGridV2 configuration...
        // Omitted for brevity
    
        // Export to PDF button function.
        $("#export").click(function () {
            var pivotGrid = $("#pivotgrid").data("kendoPivotGridV2")
            pivotgrid.saveAsPDF();
        });
    </script>
    
  • To configure the PDF file, refer to the pdf configuration options.

  • For the runnable project, refer to the demo on exporting the PivotGridV2 to PDF.

  • To customize the appearance of the exported PDF file, refer to the articles on the PDF output by the Kendo UI Drawing library.

See Also

In this article