Hi,
I am using the latest version of the Aspose.Pdf.dll - 9.7.0.0. I am trying to render a text paragraph containing HTML tags. The HTML has inline images in it and I can't find a way to vertically align images with the middle of the text.
Is there a way to do this?
I have attached the HTML snippet: 5nf4.lsn_snippet.txt
and the resulting PDF: 5NF4_Lsn.pdf.
I verified that the snippet HTML displays properly in Chrome, IE, and Firefox.
Here is the code:
private static void addHTMLParagraph(Section section, string content)
{
Aspose.Pdf.Generator.Text text = new Aspose.Pdf.Generator.Text(content);
text.IsHtmlTagSupported = true;
text.IsHtml5Supported = true;
section.Paragraphs.Add(text);
}