Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Kendo UI PDF Export component for Angular

I'm using Kendo for exporting a component into PDF. The problem is it doesn't print properly and the PDF generator can't handle some elements on my page. Can I resolve this or do I need to make a separate view for this PDF generator?

Kendo pdfexport My component that I want to export Exported pdf document

like image 673
Jánosi-Borsos Róbert Avatar asked Oct 31 '25 13:10

Jánosi-Borsos Róbert


1 Answers

I guess you can use a Page Template to customize your PDF output. I´m not sure which elements are not handle properly but definitely you have more power with page template.

All you need is to nest a <ng-template> tag with the kendoGridPDFTemplate directive inside the <kendo-grid-pdf> component.

Here is a Telerik example: https://stackblitz.com/run/

and some documentation: https://www.telerik.com/kendo-angular-ui/components/grid/export/pdf-export/#toc-specifying-page-template

like image 84
CMartins Avatar answered Nov 03 '25 04:11

CMartins



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!