When including the style of font-size within a tag, the size is ignored in some cases. I expected everything to be of the same size, but when the PDF is generated, it appears the <h3> tag is much larger.
Is there some base formatting that Aspose is applying to HTML renderings behind the scenes, possibly causing issue here?
C# Code:
Pdf pdf = new Pdf();
Section s = new Section();
Text t = new Text("<html><head><title></title></head><body style='font-family: Arial; font-size: 8pt;'><h3> <a class=\"removed_class_1228\"contenteditable=\"false\" target=\"_blank\" href=\"linke_removed/1228\"alt=\"Click to view control details\">Here is a link</a> <br>And some more text afterwards</h3><br><span style=\"color: #FF0000\"><b>Some caution text</b></span><br><br>Some random text before the ol tag<br><br><ol><li>First Item.</li></ol><div> <a class=\"removed_class_1227\"contenteditable=\"false\" target=\"_blank\" href=\"link_removed/1227\" alt=\"Click to view control details\">First Link</a> <br></div></body></html>");
s.Paragraphs.Add(t);
t.IsHtmlTagSupported = true;
pdf.Sections.Add(s);
pdf.Save(@"C:\src\test\test.pdf");
HTML:
<html><head><title></title></head><body style='font-family: Arial; font-size: 8pt;'><h3> <a class="removed_class_1228"contenteditable="false" target="_blank" href="linke_removed/1228"alt="Click to view control details">Here is a link</a> <br>And some more text afterwards</h3><br><span style="color: #FF0000"><b>Some caution text</b></span><br><br>Some random text before the ol tag<br><br><ol><li>First Item.</li></ol><div> <a class="removed_class_1227"contenteditable="false" target="_blank" href="link_removed/1227" alt="Click to view control details">First Link</a> <br></div></body></html>