Hi Team,
Am facing issue while generating pdf from html.
I have used css for sectioning out the data on the page. But when I convert, it all comes one after another.
It might be logical but is there any way, I can get the exact structure of html in the pdf with color combination set.
Attached is my html, css and below is the code.
Pdf pdf = new Pdf();
pdf.HtmlInfo.ImgUrl = @“C:\MyLearning\PdfConvertPOC\PdfConvertPOC\Resources\images”;
StreamReader r = File.OpenText(basePath);
Text text2 = new Text(section, r.ReadToEnd());
text2.IsHtmlTagSupported = true;
text2.IfHtmlTagSupportedOverwriteHtmlFontNames = true;
section.Paragraphs.Add(text2);
pdf.Save(pdfOutput);
MessageBox.Show(“Conversion done!”);