Hi Iain,
Thanks for using our products.
I have tested the scenario using Aspose.Pdf for .NET 8.0.0 with the following HTML and I am unable to notice any issue. Can you please try using the latest release version and in case the problem still persists, please share some details regarding your working environment.
[C#]
// Instantiate an object PDF class<o:p></o:p>
Aspose.Pdf.Generator.Pdf
pdf = new Aspose.Pdf.Generator.Pdf();
// add the section to PDF document
sections collection
Aspose.Pdf.Generator.Section
section = pdf.Sections.Add();
// Read the contents of HTML file into
StreamReader object
StreamReader r = File.OpenText(@"c:/pdftest/sample.html");
//Create text paragraphs containing
HTML text
Aspose.Pdf.Generator.Text
text2 = new Aspose.Pdf.Generator.Text(section, r.ReadToEnd());
// enable the property to display HTML
contents within their own formatting
text2.IsHtmlTagSupported = true;
//Add the text paragraphs containing
HTML text to the section
section.Paragraphs.Add(text2);
//Save the pdf document
pdf.Save(“C:/pdftest/HTML2pdf.pdf”);
[HTML]
<html><o:p></o:p>
<body>
<html>
<tr>
<td colspan="8" style="border-right: 1px;
text-align: left">
<p>A</p>
<p>A</p>
<p>A</p>
<p>A</p>
<p>A</p>
</td>
</tr>
<html>
</body>
</html>