Hi,
We are using liscensed Aspose.pdf to generate pdf from htmlThe code we are using comes from your website as below
Aspose.Pdf.Generator.Pdf pdf = new Aspose.Pdf.Generator.Pdf();// add the section to PDF document sections collectionAspose.Pdf.Generator.Section section = pdf.Sections.Add();// Read the contents of HTML file into StreamReader objectStreamReader r = File.OpenText(@"D:/pdftest/HTML2pdf.html");//Create text paragraphs containing HTML textAspose.Pdf.Generator.Text text2 = new Aspose.Pdf.Generator.Text(section, r.ReadToEnd());// enable the property to display HTML contents within their own formattingtext2.IsHtmlTagSupported = true;//Add the text paragraphs containing HTML text to the sectionsection.Paragraphs.Add(text2);// Specify the URL which serves as images databasepdf.HtmlInfo.ImgUrl = "D:/pdftest/MemoryStream/";//Save the pdf documentpdf.Save("D:/pdftest/MemoryStream/HTML2pdf.pdf");
However, the Right part of the pdf generated doesn't show right, Check text are missing and layout is weird. I attached the original files(html and pdf generated) in the attachment. Please use them for testing and provide the solution if possible. It is very urgent. Thank you very much.