Export to PDF shift content to left column on second page

2 Answers 206 Views
PDF Export
Vikram
Top achievements
Rank 1
Vikram asked on 04 Aug 2023, 09:08 PM | edited on 04 Aug 2023, 09:09 PM

I have tabular data in DIV elements. The data being displayed in table is from rich textbox, so some columns have longer content than other, due to which kendo pdf automatically break the page (which is fine) and remaining content displayed on second page.

The issue is content on 2nd page shift to the left columns since those columns doesn't have any data on second page.

How to make sure kendo respect the columns and keeps the data in same column after page break.

https://angular-kendo-export-pdf-svacsk.stackblitz.io/

 

 

Vikram
Top achievements
Rank 1
commented on 09 Aug 2023, 02:48 PM | edited

Update :  added stackblitz 

2 Answers, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 09 Aug 2023, 09:52 AM

Hello, Vikram,

Could you please share the code you are using to export the content? 

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
Vikram
Top achievements
Rank 1
commented on 09 Aug 2023, 02:49 PM

0
Martin Bechev
Telerik team
answered on 14 Aug 2023, 08:10 AM

Hi Vikram,

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
Tags
PDF Export
Asked by
Vikram
Top achievements
Rank 1
Answers by
Martin
Telerik team
Martin Bechev
Telerik team
Share this question
or