PDF Export

The KendoReact TreeList provides options for exporting to PDF.

Getting Started

To enable the PDF export:

  1. Install kendo-react-pdf package.

    npm install @progress/kendo-react-pdf @progress/kendo-licensing
  2. Import the TreeListPDFExport component in your React Application.

    import { TreeListPDFExport } from '@progress/kendo-react-pdf';
  3. Wrap the TreeList inside a TreeListPDFExport component.

  4. Get the ref of the TreeListPDFExport.

  5. Call the save function of the TreeListPDFExport component.

The following example demonstrates the basic implementation of the PDF export functionality of the TreeList.

Example
View Source
Change Theme:

Configuration

You can control the PDF export configuration through the arguments that are passed to the save function of the KendoReact PDF Export component.

The TreeListPDFExport enables you to:

Exporting Specific Data

To export specific data, pass the data to the save function of the TreeListPDFExport component. For example, if the TreeList has its paging enabled but you need to export all pages and all records expanded, pass the processed data to the save function.

Example
View Source
Change Theme:

Customizing Exported Columns

The TreeListPDFExport provides the ability to add or hide some of the columns in the exported PDF file. This is done by passing the columns that have to be exported to the save function.

Example
View Source
Change Theme:

Known Limitations

For full list of the PDF export known limitations refer to the drawing package.