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)