Hi guys,
We are trying to generate a PDF from HTML content which has a number of tables. We are finding that content of tables is spilling onto a second page which looks untidy when it prints. For example the heading and first row are on one page and the other rows are on a second page. I know we can use something like <div style=“page-break-after:always”></div> to explicitly force a page break, but we’d rather a solution where we can simply specify that if the contents of ANY table spill onto a new page we can just put the whole table onto the second page rather than having bits of the table on two pages. I’ve tried this:
<div style=“page-break-after:auto”>
<table class=“main”>
…
</table>
</div>
…but the Aspose tool throws a NullReferenceException.
Do you know how I can solve this?
Thanks