SASS Theme Builder
Grid / Export to PDF
This page loads pako zlib library (pako_deflate.min.js) to enable compression in the PDF. This is highly recommended as it improves performance and rises the limit on the size of the content that can be exported.
The Standard PDF fonts do not include Unicode support. In order for the output to match what you see in the browser you must provide source files for TrueType fonts for embedding. Please read the documentation about custom fonts and drawing.
Nowadays, the PDF format is very popular and widely used to present documents in a manner independent of application software, hardware and operating systems. This demo shows how to export the Telerik for ASP.NET Core Grid contents to PDF.
The approach is very straight-forward - to export the grid content to PDF include the corresponding command to the toolbar of the grid
.ToolBar(tools => tools.Pdf()). For greater control over the output configure the PDF export setting. For instance, you can specify the file name and whether to export all pages, margins, paper size, font, etc. To initiate export programmatically, you can call the
saveAsPdf() method from the client-side API.
Additionally, you can customize the appearance of the exported grid table by providing a template via the
.Pdf(pdf => pdf.TemplateId("page-template")) method.
More about Telerik Grid for ASP.NET Core