X
X
xtalen2014-05-28 13:12:10
PHP
xtalen, 2014-05-28 13:12:10

How to solve the problem with rowspan in mPDF?

How to make mPDF paginate cells?

<table>
<tr>
<td rowspan='1000'>Test</td>
<td>Test2</td>
</tr>
<tr>
<td>Test2</td>
</tr>
...
</table>

mPDF wants to shove the Test cell into one page without wrapping, as a result, instead of:
d73e0826987448aba321a297a82e14b3.png
it turns out:
7f085b95899249849ad96a95ee21c41b.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
X
xtalen, 2014-05-29
@xom9lk

in general, there seems to be no solution ... from the documentation:
"tables will resize so that the tallest row (cell) will fit on a page [this is the only one that cannot be overridden]", which means if you a tall cell, it will shrink to the size of the page and cannot be changed, strange, I will use something else

G
Gregory, 2014-05-28
@difiso

Download the file , go to the examples folder , find the file example05_tables.php there . It has markup, styles are in the mpdfstyletables.css file . Experiment. Ideally it should look like this .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question