# PDF Export

The data of the TreeList component can be easily exported to a PDF file. Depending on the requirements of the targeted scenario, you can modify the exported data the way you need it. The current article covers three popular data export scenarios:

* [Export of the visible TreeList data](https://www.telerik.com/kendo-vue-ui-develop/components/treelist/pdf-export#getting-started)
* [Export of all items loaded in the TreeList data](https://www.telerik.com/kendo-vue-ui-develop/components/treelist/pdf-export#exporting-all-the-data-loaded-in-the-treelist)
* [Export the data from selected TreeList columns](https://www.telerik.com/kendo-vue-ui-develop/components/treelist/pdf-export#customizing-exported-columns)

## Getting Started

To enable the PDF export:

1. Install `kendo-vue-pdf` package.

   ```sh
   npm install @progress/kendo-vue-pdf @progress/kendo-licensing
   ```

2. Import the TreeListPDFExport component in your Vue Application.

   ```jsx
   import { TreeListPDFExport } from '@progress/kendo-vue-pdf';
   ```

3. Wrap the TreeList inside a TreeListPDFExport component.

4. Define a `ref` of the TreeListPDFExport.

5. Call the [`save`](https://www.telerik.com/kendo-vue-ui-develop/components/pdf-processing/api/treelistpdfexportprops#save) function of the TreeListPDFExport component.

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

[Demo Source](https://demos.telerik.com/kendo-vue-ui/treelist/pdf/basic/source.txt)

### Exporting All the Data loaded in the TreeList

To export specific TreeList data, pass the data to the [`save`](https://www.telerik.com/kendo-vue-ui-develop/components/pdf-processing/api/treelistpdfexportprops#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.

[Demo Source](https://demos.telerik.com/kendo-vue-ui/treelist/pdf/all-data-expanded/source.txt)

### 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`](https://www.telerik.com/kendo-vue-ui-develop/components/pdf-processing/api/treelistpdfexportprops#save) function.

[Demo Source](https://demos.telerik.com/kendo-vue-ui/treelist/pdf/columns-modification/source.txt)

## Known Limitations

For full list of the PDF export known limitations refer to the [drawing package](https://www.telerik.com/kendo-vue-ui-develop/components/drawing/limitations-browser-support).

## Suggested Links

* [API Reference of the TreeList Component](https://www.telerik.com/kendo-vue-ui-develop/components/treelist/api/treelistprops)
