We are having difficulty paginating long tables where large rowspans occur.
Let's assume we have a table that is 100 rows long with THEAD and TBODY attributes. Lets also say that there are two rowspans, one of them 80 rows long (rowspan="80") and the other 20 rows long (rowspan="20").
*The idea here is that the 80 rowspan "page-breaks" over 2 or more pages.
When princed, the resulting pdf is totally screwed up - producing unexpected results in several departments. In particular and most crucially:
1. THEAD fails to print at the top of every page.
2. The content of the rowspan="80" cell dissapears completely
3. Page breaking is just weird
Remove the rowspan altogether, and the problem disappears - thead prints on every page, content is all there, page breaking is good.
Just a note that we would prefer not to remove the rowspan from our table - it is semantically correct and it looks right too (in screen view).
Here are links to illustrate. The html is deliberately basic with no CSS. Adding CSS pagebreak rules seem to have no effect.
With rowspan - screwed:
http://www.cwstest.ca/princed/test-1.html
http://www.cwstest.ca/princed/test-1.pdf
Without rowspan - nice:
http://www.cwstest.ca/princed/test-2.html
http://www.cwstest.ca/princed/test-2.pdf
Let's assume we have a table that is 100 rows long with THEAD and TBODY attributes. Lets also say that there are two rowspans, one of them 80 rows long (rowspan="80") and the other 20 rows long (rowspan="20").
*The idea here is that the 80 rowspan "page-breaks" over 2 or more pages.
When princed, the resulting pdf is totally screwed up - producing unexpected results in several departments. In particular and most crucially:
1. THEAD fails to print at the top of every page.
2. The content of the rowspan="80" cell dissapears completely
3. Page breaking is just weird
Remove the rowspan altogether, and the problem disappears - thead prints on every page, content is all there, page breaking is good.
Just a note that we would prefer not to remove the rowspan from our table - it is semantically correct and it looks right too (in screen view).
Here are links to illustrate. The html is deliberately basic with no CSS. Adding CSS pagebreak rules seem to have no effect.
With rowspan - screwed:
http://www.cwstest.ca/princed/test-1.html
http://www.cwstest.ca/princed/test-1.pdf
Without rowspan - nice:
http://www.cwstest.ca/princed/test-2.html
http://www.cwstest.ca/princed/test-2.pdf