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

feat: add flag to break page if not enough space available #72

Open
marbetschar opened this issue May 22, 2018 · 3 comments
Open

feat: add flag to break page if not enough space available #72

marbetschar opened this issue May 22, 2018 · 3 comments

Comments

@marbetschar
Copy link

marbetschar commented May 22, 2018

Is there a way we can force TPPDF to not split a text element if it does not fit on the same page? But instead having it drawing the whole text on the next page?

I have a use case, where I want to add a text element at the end of the content - and I want TPPDF to keep the whole text together. If it doesn't fit on the first page - TPPDF should simply draw the whole text on the second page.

@philprime
Copy link
Member

So we should add a flag which inidicates TPPDF not to break the text. If the text is moved to a new page, and doesn't fit there either (longer than one page), should it break then?

@marbetschar
Copy link
Author

Year, I think its a good idea to break if its longer than one page - but keep it together otherwise.

@philprime
Copy link
Member

I think we need to implement this logic in here. Can you take a look at it? I do not have the time right now to work on issues

@philprime philprime changed the title Force framework to NOT split text feat: add flag to break page if not enough space available Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants