when converting html to pdf using the following code in some cases when image attachment exist it write the image base64 encoded text to the PDF .
How can prevent that?
Here is a link to download sample HTML with this issue:
Sample Code:
Aspose.Pdf.HtmlLoadOptions loadOptions = new Aspose.Pdf.HtmlLoadOptions();
Aspose.Pdf.Document pdfDocument;
pdfDocument = new Aspose.Pdf.Document(fileNameHtml, loadOptions);
pdfDocument.Save(fileNamePDF);
@shlomoCh
Please check the attached output PDF that we obtained in our environment using 23.5 version of the API. Please confirm if you are getting same output? output.pdf (191.7 KB)
I just found that my sample image was not correct and the issue caused by converting EML to PDF where the EML had “bad” tags.
You may close this case.
Thanks
@shlomoCh
It is nice to know that you were able to sort your issue out. Please keep using the API and feel free to let us know by creating a new topic in case you face any issues.