Page Template
Premium

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.

ninja-iconThe PDF Export feature of the Grid is part of KendoReact premium, an enterprise-grade UI library with 120+ free and premium components for building polished, performant apps. Test-drive all features with a free 30-day trial.Start Free Trial

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.

Change Theme
Theme
Loading ...
In this article
Suggested Links
Not finding the help you need?
Contact Support