TPPDF icon indicating copy to clipboard operation
TPPDF copied to clipboard

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

Open marbetschar opened this issue 6 years ago • 3 comments

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.

marbetschar avatar May 22 '18 09:05 marbetschar

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?

philprime avatar Jun 29 '18 17:06 philprime

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

marbetschar avatar Jun 30 '18 11:06 marbetschar

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 avatar Aug 29 '18 06:08 philprime