Aspose (pdf) is not rendering image properly while converting html to pdf

Hi Sir,

I was trying to convert html into pdf file but the logo image which i was using in the html goy distorted after conversion, I am sharing html, pdf and my code snippet which i was using in this case,

HtmlLoadOptions htmloptions = new HtmlLoadOptions(tempFilesDir);
htmloptions.getPageInfo().getMargin().setLeft(0);
htmloptions.getPageInfo().getMargin().setRight(0);
htmloptions.getPageInfo().getMargin().setTop(20);
htmloptions.getPageInfo().getMargin().setBottom(20);

// Load HTML file
Document doc = new Document( tempFilesDir+fileName + ".html", htmloptions);

doc.save( generalDocumentsBaseDir + filePath + fileName + ".pdf");

Please check and do let me know if i am missing something…

Note : We are using 23.10 of aspose-pdf for java

html_to_pdf.zip (107.6 KB)

@ravigupta.se92

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PDFJAVA-44277

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.