Reading few articles regarding conversion from mhtl to pdf I was under the impression that you your nuget package for .net framework could convert mhtl to pdf - we did try an mhtl file with an embedded image but could not convert the image when processed.
Do you have an example where you convert an mhtl file with embedded image to pdf using .net Framework?
We checked the reported issue with provided details but it is working properly.We have attached the sample for your reference.Please try the sample on your end and let us know the result whether it is satisfies your requirement or not.
If still you are facing any issue ,we request you to share the complete code snippet and product version,input MHTMl file to check this on our end. So, it will be helpful for us to analyze and assist you further on this.
Hi thank you for your reply and your sample.
Your sample works , however we have noticed that you are pointing to an endpoint (url) to display the image rather than an embedded image.
we have a situation where we need to display an email where the image is embedded in the document.
I have attached a sample mht with embedded image to prove the point.
We have checked the provided MHTML file in our end. Blink converter internally makes use of chromium executable in headless mode for converting MHTML to PDF. It will preserve the PDF document like how the input MHTML is displayed in chromium-based web browsers (chrome print preview).The same behavior replicates in our converter. So this is not an issue in our converter.
Please refer below screenshot
So, kindly check the image rendering issue in chrome browser and print preview with the mhtml file.
Please let us know if you need any further assistance in this
thanks for your reply, I see and get your point. However we still need to find a solution to our problem, I understand that your converter does what chrome does...
The reported issues still need a lot more in-depth research; thus we are looking into them. On January 31st, 2023, further information will be updated.
On further analyzing the provided code snippet, we found that you are referring to some image files in your mhtml file. can you please share those image file with us. so that we can assist with you further in this.
We have checked other possibilities by modifying the mhtml file, but the base64 image included in the mhtml file is not being displayed correctly, and it was referred from the content location. So that we could not proceed further on this