This should stack "Some big text", "Some small text" and "Some very small text" in their set font sizes (20, 10 and 5) horizontally by using $ln = 0. If a page break occurs right before that, it still should look like that, only be put on the following page.
My example contains a page break - "Some very small text" is still on page 1 with the correct font size, "Some big text" and "Some small text" are on page 2, both having font size 20.
If you remove one of the "\nLine"s from the first text String, there's no page break and everything is fine.
Also using "Cell" instead of "MultiCell" (the part commented out) won't show this odd behaviour, but that's only a solution when you can be sure that the contents of the cell(s) definitely won't contain line breaks.
Any ideas?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
OK, I found a workaround for stacking stuff horizontally in a "page-break-safe" way by using an HTML table in writeHTMLCell(). In my case right now this works fine, although there are features like valign missing, which do work with a MultiCell.
So I'm still curious what causes this odd MultiCell behaviour on page breaks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I stumbled upon some odd behaviour on page breaks when stacking MultiCells horizontally by setting $ln = 0.
Example:
This should stack "Some big text", "Some small text" and "Some very small text" in their set font sizes (20, 10 and 5) horizontally by using $ln = 0. If a page break occurs right before that, it still should look like that, only be put on the following page.
My example contains a page break - "Some very small text" is still on page 1 with the correct font size, "Some big text" and "Some small text" are on page 2, both having font size 20.
If you remove one of the "\nLine"s from the first text String, there's no page break and everything is fine.
Also using "Cell" instead of "MultiCell" (the part commented out) won't show this odd behaviour, but that's only a solution when you can be sure that the contents of the cell(s) definitely won't contain line breaks.
Any ideas?
OK, I found a workaround for stacking stuff horizontally in a "page-break-safe" way by using an HTML table in writeHTMLCell(). In my case right now this works fine, although there are features like valign missing, which do work with a MultiCell.
So I'm still curious what causes this odd MultiCell behaviour on page breaks.