Page TemplatePremium
This example shows how to use the KendoReact pdf
export feature to generate a PDF of the Data 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.
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
property of 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
property.