This is a migrated thread and some comments may be shown as answers.

Combined automatic page breaks and forced page breaks cutting off content (Kendo React PDF)

5 Answers 715 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
crimsondeal
Top achievements
Rank 1
crimsondeal asked on 25 Nov 2019, 07:40 PM

In the docs it says automatic and forced page breaks can be set simultaneously. However, when they are both set and there is a really long page, it cuts off the content: https://stackblitz.com/edit/react-ctmgfy

 

Is it possible to create these automatic page breaks while forcing page breaks as well?

5 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 27 Nov 2019, 07:56 AM

Hello,

Thank you for the example.

I can assume that this occurs because the page break selector is too generic. For example, it even gets the first p element and exports an empty page 1.

I can suggest using a specific class as in the documentation, which will be applied to the desired elements.

After I set a class name, the elements were exported as expected:

https://stackblitz.com/edit/react-ctmgfy-p4hmgy?file=app%2Fmain.jsx

Regards,
Stefan
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
crimsondeal
Top achievements
Rank 1
answered on 11 Dec 2019, 06:42 PM

Thank you! That seemed to help when all are on one level, but running into issues with nested elements:

https://stackblitz.com/edit/react-ctmgfy-e2cimg

0
Stefan
Telerik team
answered on 13 Dec 2019, 12:52 PM

Hello,

Thank you for the updated example.

Please have in mind that we will need more time to inspect it to determine why is this happening as the setup seems correct.

There is maybe a small detail missing.

I will let you know as soon as we have more information on this

Regards,
Stefan
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Stefan
Telerik team
answered on 13 Dec 2019, 01:22 PM

Hello,

I have logged an item, so you can monitor the progress:

https://github.com/telerik/kendo-ui-core/issues/5477

It is in the kendo-ui-core repo as the core PDF export functionality framework agnostic and this affects other products as well.

I have updated your Telerik points for bringing this to our attention.

Regards,
Stefan
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
crimsondeal
Top achievements
Rank 1
answered on 18 Dec 2019, 02:04 AM

Hi Stefan,

Thank you! I appreciate you looking into this-- will keep an ear out for any updates.

Tags
General Discussions
Asked by
crimsondeal
Top achievements
Rank 1
Answers by
Stefan
Telerik team
crimsondeal
Top achievements
Rank 1
Share this question
or