I’m trying to use the HTML.Net package to convert Html content to PDF formatted output. I have below issues.
- Fonts are not getting resolved properly, It always seems to use the first font it find in the folder
- Images are not getting added through urls. the external image urls does not get added to the output. In the real scenario I also want to add a bearer token to the image request, to do that i have added a MessageHandler. Even with a public image, still it does not get added to the output.
we are doing a POC with this to identify whether this product is a suitable option. please share if the code needs to be improved to HtmlToPdfConverter.zip (1.5 KB)
fix this. I have attached the sample class files.