Hi,
I'm trying to convert my html string to image and found this package. However after trying the exactly same code from your demo, i'm getting the error:
An unhandled exception occurred while processing the request.
Exception: Something went wrong. Please check input parameters
CoreHtmlToImage.HtmlConverter.FromUrl(string url, int width, ImageFormat format, int quality)
i've saw another thread closed similar to this, but didn't helped me. My code is:
var converter = new HtmlConverter();
var html = "
Hello, World
";
var bytes = converter.FromHtmlString(html);
File.WriteAllBytes("image.jpg", bytes);
Hi, I'm trying to convert my html string to image and found this package. However after trying the exactly same code from your demo, i'm getting the error:
An unhandled exception occurred while processing the request. Exception: Something went wrong. Please check input parameters CoreHtmlToImage.HtmlConverter.FromUrl(string url, int width, ImageFormat format, int quality)
i've saw another thread closed similar to this, but didn't helped me. My code is:
var converter = new HtmlConverter(); var html = "
Hello, World
"; var bytes = converter.FromHtmlString(html); File.WriteAllBytes("image.jpg", bytes);
Thanks in advance