Hi,
I am not able to set correct setting for HTML to PDF conversion.
I have attache PDF file. (Not able to attache HTML file)
My Test code :
Aspose.Pdf.Generator.Pdf pdf = new Aspose.Pdf.Generator.Pdf();
Aspose.Pdf.Generator.Section section = pdf.Sections.Add();
StreamReader r = System.IO.File.OpenText(cConstruct.Source);
Aspose.Pdf.Generator.Text text2 = new Aspose.Pdf.Generator.Text(section, r.ReadToEnd());
text2.IfHtmlTagSupportedOverwriteHtmlFontNames = true;
text2.IfHtmlTagSupportedOverwriteHtmlFontSizes = true;
text2.IsHtmlTagSupported = true;
text2.IsHtml5Supported = true;
text2.IsFitToPage = true;
section.Paragraphs.Add(text2);
pdf.Save(“test.pdf”);
Any help would be appreciated !!!