Is there any option in we can load HtmlLoadOptions using host path
As below:
HtmlLoadOptions objHtmlLoadOptions = new HtmlLoadOptions("https://dnndev.me/Portals/0/styles/");
We are facing “Exception:Failed to parse URL” issue with below code
And I think it has something to do with loading these resources, so I was thinking if we can load these resources with host path URL
HtmlLoadOptions objHtmlLoadOptions = new HtmlLoadOptions("C:/dnndev.me/Portals/0/styles/");
MemoryStream objMemoryStream = new MemoryStream(Encoding.UTF8.GetBytes(html));
using (Document objPDFDocument = new Document(objMemoryStream, objHtmlLoadOptions))
{
objPDFDocument.Save(resultMemoryStream);
}