Prince XML. Split table across pages.

Hi developers,

Try this layout in case you want to split a table across pages in a PDF document with Prince XML.
Header and footer contain absolutely positioned elements. Header and footer heights controlled by CSS properties and prince’s “flow” function.
In this example header will be repeated on each page but footer only once, at the end of the document.
Please note that if you want to change header or footer height you will need to change also margins for @page property.









Header
Absolutely positioned element 1
Absolutely positioned element 2
Absolutely positioned element 3
Absolutely positioned element 4
Absolutely positioned element 5
Table header
Table contents on the page. Table contents on the page. Table contents on the page. Table contents on the page.
Table contents on the page. Table contents on the page. Table contents on the page. Table contents on the page.
Table contents on the page. Table contents on the page. Table contents on the page. Table contents on the page.
Table contents on the page. Table contents on the page. Table contents on the page. Table contents on the page.
Table contents on the page. Table contents on the page. Table contents on the page. Table contents on the page.
Table contents on the page. Table contents on the page. Table contents on the page. Table contents on the page.
Table contents on the page. Table contents on the page. Table contents on the page. Table contents on the page.
Table contents on the page. Table contents on the page. Table contents on the page. Table contents on the page.
Table contents on the page. Table contents on the page. Table contents on the page. Table contents on the page.
Table contents on the page. Table contents on the page. Table contents on the page. Table contents on the page.
Table contents on the page. Table contents on the page. Table contents on the page. Table contents on the page.
Table contents on the page. Table contents on the page. Table contents on the page. Table contents on the page.
Table contents on the page. Table contents on the page. Table contents on the page. Table contents on the page.
Table contents on the page. Table contents on the page. Table contents on the page. Table contents on the page.
Table contents on the page. Table contents on the page. Table contents on the page. Table contents on the page.
Table contents on the page. Table contents on the page. Table contents on the page. Table contents on the page.
Table contents on the page. Table contents on the page. Table contents on the page. Table contents on the page.
Table contents on the page. Table contents on the page. Table contents on the page. Table contents on the page.
Table contents on the page. Table contents on the page. Table contents on the page. Table contents on the page.
Table contents on the page. Table contents on the page. Table contents on the page. Table contents on the page.
Table contents on the page. Table contents on the page. Table contents on the page. Table contents on the page.

Now you can copy the contents above to example.html file and try it like this:

> prince example.html example.pdf

If you have no prince installed you can download it from here