Wrapping part of a View onto another page, but ensuring that title & body text always appear on the same page? #2626
Replies: 2 comments
-
Hello, Nice to meet you. |
Beta Was this translation helpful? Give feedback.
-
Also interested in this. Here's an example I'm working with. My goal is to make that the In my actual application, I'm rendering a single page and allowing react-pdf to handle the page wrapping as it sees fit. My report layout is also configurable so I can't really just add page breaks where after each new component because like the original poster said, there will be lots of whitespace between report sections. I have tried toying with |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I'm loving this library, very impressed by it. I have a question for page-wrapping.
Imagine I have a View component which nests two things, a title and a body text, like so:
The body-text can be quite long, so I would quite like it to be able to wrap onto the next page. However, at times the title gets disconnected from the body text, as the page wraps exactly between the title and the body text.
Is there any way to ensure both that the title always stays connected to the body text, but the body text also wraps onto the next page?
Disabling page wrapping for the whole text component causes huge amounts of white space in my documents, as all components now sit on their own page, so I'd like to avoid that if possible.
Beta Was this translation helpful? Give feedback.
All reactions