# Page Template

This example shows how to use the KendoReact `pdf` export feature to generate a PDF of the Grid with a custom page template. The template is applied to every page of the exported PDF, allowing you to add headers, footers, or other custom elements to each page.

<CtaPanelOverview></CtaPanelOverview>

Specifying a page template helps you position the content and add headers, footers, and other elements. To style the exported document, use CSS. During the PDF export, the template is positioned in a container with the specified paper size. To define a page template, specify the [`pageTemplate`](https://www.telerik.com/kendo-react-ui/components/pdfprocessing/api/pdfexportprops#pagetemplate) property of [`saveGridPDF`](https://www.telerik.com/kendo-react-ui/components/pdfprocessing/api/savegridpdf) method inside the PDF Export Handler.

The result is a PDF file with a custom page layout, including headers or footers, and a well-structured representation of the Grid data.

> When you use a page template, you are required to set the [`paperSize`](https://www.telerik.com/kendo-react-ui/components/pdfprocessing/api/pdfexportprops#papersize) property.

[Demo Source](https://demos.telerik.com/kendo-react-ui/grid/pdf-page-template/func/source.txt)

## Suggested Links

* [PDF Export Known Limitations](https://www.telerik.com/kendo-react-ui/components/grid/export/pdf-export/known-limitations)
* [API Reference of GridPDFExport](https://www.telerik.com/kendo-react-ui/components/pdfprocessing/api/pdfexportprops)
