Hi,
I'm evaluating the htmltopdf functionality.
I've got a string with a style tag containing a color and text-align attribute
PdfHTMLTextElement texthtml = new PdfHTMLTextElement();
texthtml.HTMLText = "<p style=\"color: red;text-align: left\">This is a red text align left</p>";
PdfLayoutResult res = texthtml.Draw(currentPdfPage, new Rectangle(20, 20, page.GetClientSize().with, page.GetClientSize().Height), new PdfMetafileLayoutFormat { Break = PdfLayoutBreakType.FitPage, Layout = PdfLayoutType.OnePage });
From this ressource Working with Text, PdfHTMLTextElement support for a basic HTML tags but not the style tag. Is there any way to render the text-align property with a PdfHTMLTextElement ?
thanks,