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

6 posts, 0 answers
  1. crimsondeal
    crimsondeal avatar
    12 posts
    Member since:
    Sep 2019

    Posted 25 Nov 2019 Link to this post

    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?

  2. Stefan
    Admin
    Stefan avatar
    3008 posts

    Posted 27 Nov 2019 Link to this post

    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
  3. crimsondeal
    crimsondeal avatar
    12 posts
    Member since:
    Sep 2019

    Posted 11 Dec 2019 Link to this post

    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

  4. Stefan
    Admin
    Stefan avatar
    3008 posts

    Posted 13 Dec 2019 Link to this post

    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
  5. Stefan
    Admin
    Stefan avatar
    3008 posts

    Posted 13 Dec 2019 Link to this post

    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
  6. crimsondeal
    crimsondeal avatar
    12 posts
    Member since:
    Sep 2019

    Posted 17 Dec 2019 Link to this post

    Hi Stefan,

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

Back to Top