We are trying to avoid page breaks in our table. We are using Aspose.Words version 19.9.0. The current scenario is that “page-break-before:always” on a div that contains a table works if we add some text in before the actual table. Otherwise, it does not work. If we change page-break-before to ‘initial’, then it does not work at all.
We have uploaded two HTML files. testHtml contains the page-break-before:always and it is working, with the additional “test” text, but doesn’t work if we put the table directly after the div.
(Search for: div style=‘page-break-before:always’ )
testHtml2 contains page-break-before:initial and does not work at all.
HTML.zip (1.2 KB)