Html to PDF - Image is not displaying in pdf

Please help us.

Attached zip file contains the html and image. I can see the image on html but not in pdf.

Here is the code:
string ImgPath = “C:/temp/”;
string fn = Path.Combine(basePath,“HtmlInput.html”);
HtmlLoadOptions htmloptions = new HtmlLoadOptions(ImgPath);
// Load HTML file
Document doc = new Document(fn, htmloptions);

// Save HTML file
doc.Save(Path.Combine(ImgPath, strFilename));

Please let me know if you have any questions. Thank you for all your help.

Pessi.
spessi.v@gmail.com

Hi Pessi,


Thanks for your inquriy. We are looking into it and will update you soon.

Best Regards,

Thank you very much. Tilal. I will be waiting for your reply.

We found the issue… Img Float: Left property causing the issue. I had to remove the Float property or set to Inherit;


Please fix this issue in future releases of aspose. Thank you for your help.

Hi Pessi,


Thanks for your feedback. It is good to know that you have found a workaround for the issue. However, I have noticed the reported issue and logged a ticket PDFNET-41183 in our issue tracking system for further investigation and rectification. We will notify you as soon as it is resolved.

We are sorry for the inconvenience.

Best Regards,

The issues you have found earlier (filed as PDFNET-41183) have been fixed in Aspose.PDF for .NET 21.5.