Free Support Forum -

Convert HTML to PDF using C# - different behavior of page-break property in version 19.11 to 21.1 | Aspose.PDF


we updated our application from Aspose.PDF Version 19.11 to 21.1. Unfortunatly we noticed a different behavior in page breaks. I will attach a test application and two pdf files that shows the difference. The pdf files are created with the exact same code and the same html file. Can you please explain why the page breaks are diffrent?
How can we achive the same page break behavior with 21.1 as in 19.11 (no pagebreak within tablerow)?
I think the problem could be the nested table in html file line 468.
As table row style in html file line 31 we use:
tr {
all: initial;
border: 0;
border-collapse: collapse;
page-break-inside: avoid;

Thank you very much for your help.
Regards Fabian (222.4 KB)

Addition to my topic. The change of the behavior happens between version 20.6 and 20.7.


I have been able to reproduce the issue on our end. A ticket with ID PDFNET-49838 has been created in our issue tracking system to further investigate the issue on our end. This thread has been linked with the issue so that you may be notified once the issue will be fixed.