Im still working with flying saucer to export xhtml to pdf.
At the moment its just a datatable with header and footer on every page.
The problem is, the header on the second page (and also on the following ones) has no margins, so the header underlays the content of the datatable, because the table is too large for one page.
Ive tried a lot, but nothing works.
The margins are set with css style in the body tag.
Hope somebody can help me as far.
Greetings
Solved it to my own:
Just added
@page { margin: 100px 50px 50px}
to the styles.
The table had a very bad looking break after a page, so I added also this:
tr{page-break-inside:avoid;}
Now it works fine.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With