I am using rowSpan but when I have a big table and its spans multiple pages, sometimes the last row of the span extends to a much bigger height than what I specified on the table.
// playground requires you to assign document definition to a variable called dd
var dd = {
"content": [
{
"table": {
"headerRows": 0,
"dontBreakRows": true,
"keepWithHeaderRows": 1,
"heights": 45,
"widths": [50, 100, 200, 50],
"body": [
["1", "2", "3", "4"],
[{
"rowSpan": 4,
"text": "4spamn"
}, null, null, null],
[null, null, null, null],
[{
"rowSpan": 2,
"text": "2span"
}, null, null, null],
[null, null, null, null],
[{
"rowSpan": 2,
"text": null
}, null, null, null],
[null, null, null, null],
[{
"rowSpan": 2,
"text": null
}, null, null, null],
[null, null, null, null],
[{
"rowSpan": 1,
"text": null
}, null, null, null], [{
"rowSpan": 15,
"text": "span 15",
"maxHeight": 50,
}, null, null, null],
[null, null, null, null],
[null, null, null, null],
[null, null, null, null],
[null, null, null, null],
[null, null, null, null],
[null, null, null, null],
[null, null, null, null],
[null, null, null, null],
[null, null, null, null],
[null, null, null, null],
[null, null, null, null],
[null, null, null, null],
[null, null, null, null],
[{
"rowSpan": 1,
"text": null
}, null, null, null],
[{
"rowSpan": 1,
"text": null
}, null, null, null], [{
"rowSpan": 1,
"text": null
}, null, null, null],
[{
"rowSpan": 5,
"text": "span 5"
}, null, null, null],
[null, null, null, null],
[{
"rowSpan": 2,
"text": null
}, null, null, null],
[null, null, null, null],
[null, null, null, null]
]
}
}
]
}
but if I change the heights to 47 span 15 no longer breaks and all rows are the correct height even though the span stretches over multiple pages.
Does anyone know of any rules that PDF make is applying that explains why this happens or is it a bug?
I am using rowSpan but when I have a big table and its spans multiple pages, sometimes the last row of the span extends to a much bigger height than what I specified on the table.
Here is a snipped you can put in the playground:
In the example the span 5 has a massive final row
and if I change the heights to say 30
the span 15 does a similar thing
but if I change the heights to 47 span 15 no longer breaks and all rows are the correct height even though the span stretches over multiple pages.
Does anyone know of any rules that PDF make is applying that explains why this happens or is it a bug?