Text overwriting at page break generating pdf from html

Hi. I have a requirement to generate a PDF from a large pre-formatted html file. The html uses page-break-inside: avoid. Sometimes when a paragraph is too large to fit on the end of a page, instead of moving that whole paragraph to a new page, the paragraph gets split across the page break, with the last part of the paragraph overwriting the text of the next paragraph at the top of the of the next page, leading to garbled illegible text.

screenshot.png (61.6 KB)

A screenshot, example pdf and example code are attached. The example code input is a simplified version of the html document with enough elements to demonstrate the issue. I’m using Aspose.PDF 19.7.0.

ConsoleApp10.zip (7.2 KB)
tmp.pdf (79.3 KB)

@JW123

Thank you for contacting support.

We have worked with the data shared by you and have been able to reproduce the issue in our environment. A ticket with ID PDFNET-46768 has been logged in our issue management system for further investigation and resolution. The ticket ID has been linked with this thread so that you will receive notification as soon as the ticket is resolved.

We are sorry for the inconvenience.

Nine months later and issue still persists in version 20.5.0

@JW123

We apologize for the inconvenience faced.

The ticket which was logged earlier is still pending for an analysis due to low priority. Please note that it was logged under normal support and will be resolved on first come first serve basis. There are other high priority issues in the queue which were logged prior to it and we will surely inform you as soon as we make some certain progress toward resolution of the ticket. We greatly appreciate your patience in this matter. Please spare some time.

We are sorry for the inconvenience.