Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

Inline image alignment in HTML for Aspose.PDF

$
0
0
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);
}




Viewing all articles
Browse latest Browse all 3131

Trending Articles