My html file is containing a image and I placed both my html file and the image in the same folder App_Data.
Sample HTML file:
<div style='font-size: 10pt'><p align='center'><font size='5' style='font-weight: bold;'>Hello world</font><br><font style='color: rgb(128, 128, 128);' size='2'>5/16/2013</font><br><img src='Chart.png' alt='Image' style='width: 150px; height: 113px; '></p><p>Hello world</p><div>
I tried my HTML file using your sample application 'Html to pdf(Html String)14949383871505149555.zip' (HtmlToPDF.aspx).
No issues with the Html string. Only the image in the html file is not properly rendering. The alternate text for the image only displaying in the converted pdf.
steps to replicate:
1. place a html file and an image in App_Data folder
2. refer the image in the html file like the html which I placed above.
3. try the html file using 'Html to pdf(Html String)14949383871505149555.zip' (HtmlToPDF.aspx).
If the issue is with the path of the image, plz tell me, how to give the image path.
Thanks,
Yash