HTML to PDF hr style issue

Hi,
we’re seeing an issue when converting attached HTML file to PDF. Basically HR tag style is not being reflected in PDF outout file. Color and position is not the same.

Please check attache zip with HTML input and PDF output file converted with Aspose Words 22.8.

hr_test.zip (18.2 KB)

Is it a bug?

Thanks,
Brian

@leftofcentre Aspose.Words behaves the same as MS Word in this case. If you open your HTML in MS Word, it also does not reflect color and position.
You can modify your HTML like this to make Aspose.Words to understand HR formatting:

<hr size="13" align="center" noshade="" style="width:100%; color:#ff0000; background-color:#ff0000" />

For example see the following test code:

DocumentBuilder builder = new DocumentBuilder();
builder.InsertHtml("<hr size='13' align='center' noshade='' style='width: 100 %; color:#ff0000; background-color:#ff0000' />");
builder.Document.Save(@"C:\Temp\out.pdf");

here is the output PDF: out.pdf (1.6 KB)

Horizontal rule formatting in MS Word is limited to the properties available in HorizontalRuleFormat.