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
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
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
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
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
Hi Stefan,
Thank you! I appreciate you looking into this-- will keep an ear out for any updates.