kendo-pdf-export cut off the table content

1 Answer 249 Views
PDF Export
Larry
Top achievements
Rank 1
Larry asked on 08 Sep 2023, 06:23 PM

Hello,

 

When using kendo-pdf-export to export a table to pdf, if the content in a row is longer than a page, it will cut off the content. 

The html page:


The pdf:

 

Any one has any idea how to fix this?

 

Thanks in advance !

 

1 Answer, 1 is accepted

Sort by
0
Martin Bechev | Developer Support Engineer
Telerik team
answered on 13 Sep 2023, 07:47 AM

Hi Larry,

Thank you for the prepared demo.

The PDFExport of vertically aligned elements has some limitations and might lead to undesired side effects when automatic page breaking is involved:

https://www.telerik.com/kendo-angular-ui/components/drawing/limitations-browser-support/#toc-general-behavior

As a workaround set the paperSize to auto, or increase the scale (e.g. [scale]="0.4"). Preferably consider using the Grid and its build-in PDFExport, as it provides a built-in page breaking while persisting the cells content:

https://www.telerik.com/kendo-angular-ui/components/grid/export/pdf-export/

Regards,
Martin
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources
mara
Top achievements
Rank 1
commented on 09 May 2024, 03:22 AM

anyone was able to fix this? 
Martin Bechev | Developer Support Engineer
Telerik team
commented on 09 May 2024, 06:24 AM

Hi Mara,

The described behavior is a limitation of the package which cannot be avoided so far.

The suggested workaround is still valid.

Regards

Tags
PDF Export
Asked by
Larry
Top achievements
Rank 1
Answers by
Martin Bechev | Developer Support Engineer
Telerik team
Share this question
or