Html Content Overlapping issue

Hi Aspose Team,

We are currently experiencing an issue with HTML-to-PDF conversion using Aspose.PDF.

In our HTML content, which includes structured data, the content is not rendering correctly during the conversion process. Instead of maintaining proper alignment, the content appears to split/partition across the page, creating unwanted gaps and causing sections to overlap with surrounding content. This results in a distorted and inconsistent layout in the generated PDF.

Additionally, during page partitioning, when the content size is large, it overlaps and wraps with other text instead of fitting properly within the page boundaries.

The issue becomes more noticeable when handling larger volumes of content. We have also tried switching the page orientation to landscape, but the problem still persists, with the content not fitting properly within the page boundaries.

I have attached a screenshot below for your reference regarding this issue. Kindly review it.

this is my issue file:
Issue File.zip (12.0 KB)

We are unsure why the content is being rendered in this manner, especially since the same HTML structure is expected to maintain consistency throughout. Could you please help us identify the root cause and suggest a suitable fix or workaround?

Looking forward to your guidance.

@ayapan I cannot reproduce the problem using Aspose.Words. I used the following code for testing:

Document doc = new Document(@"C:\Temp\in.html");
doc.FirstSection.PageSetup.Orientation = Orientation.Landscape; // gives more space for content and output looks better.
doc.Save(@"C:\Temp\out.pdf");

Here is the produced output: out.pdf (106.2 KB)

If you are using Aspose.PDF for conversion, I can move the topic to Aspose.PDF forum. Please let us know if you are restricted to use Aspose.PDF.

@alexey.noskov Yes, I am using Aspose.PDF, and I am facing issues while using it.

@ayapan
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PDFNET-62287

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

Hi, thank you for detailed description of issue. I converted and issue was recreated. I’m not sure if it is a bug or requires some option, I added task for developers to investigate, hopefully they will respond soon