Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
maidi29 opened this issue Nov 19, 2024 · 1 comment
Open

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

maidi29 opened this issue Nov 19, 2024 · 1 comment

Comments

@maidi29
Copy link

maidi29 commented Nov 19, 2024

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"

@PeterLaudel
Copy link

You provided not any example. But take care your page break is in the root of the tag. That helped me for my break page issue.

False:

<Page>
  <View>
    <View break />
  </View>
</Page>

Correct:

<Page>
  <View break />
</Page>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants