diegomura / react-pdf

đź“„ Create PDF files using React
https://react-pdf.org
MIT License
15k stars 1.19k forks source link

Page break is created but no content is pushed to the new page #2969

Open maidi29 opened 6 days ago

maidi29 commented 6 days ago

Description The page wraps when the content doesn't fit, but the new page ends up being empty. This issue occurs in a small overflow region—when the content exceeds the page by just a little. However, if the overflow is significant, the behavior is correct, and the content is pushed to the next page as expected.

Has anyone encountered a similar issue or knows how to resolve this?

To Reproduce Create a Document that has automatic page wrapping and create content that is overflowing one page a little bit

Expected behavior Either it should fit on one page or it should break push overflowing content to the next page

Screenshots image

Desktop (please complete the following information):

"@react-pdf/renderer": "3.4.4", "@react-pdf/types": "2.5.0", "react-pdf-tailwind": "2.3.0", "react": "18.3.1"