We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Not able to get images while converting html to pdf

Aspose.Pdf.Generator.Pdf pdf = new Aspose.Pdf.Generator.Pdf(); Aspose.Pdf.Generator.Section section = pdf.Sections.Add();

Aspose.Pdf.Generator.Text text2 = new Aspose.Pdf.Generator.Text(firstresponsestr);
text2.IsHtmlTagSupported = true;


pdf.HtmlInfo.ImgUrl = “…/Images”;

        pdf.Save(pdfstream);/<hr size="1" align="left" width="25%"></body></html>

Hi Vinay,

Thanks for using our products.

Please note that pdf.HtmlInfo.ImgUrl property should point to the location where image files references in source HTML are present. In case you are setting the correct path and still encountering the same issue, please share the source HTML, so that we can test the scenario at our end. We are sorry for this inconvenience.