TPPDF
TPPDF copied to clipboard
feat: add flag to break page if not enough space available
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.
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?
Year, I think its a good idea to break if its longer than one page - but keep it together otherwise.
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