I am using this code to get image of the html page.
But it generate 4 image and each and every image with broken css. Even i have try with this given link to check demo purpose to generate image from url but it is not working.
Url -: Aspose.HTML Applications
Kindly take a look over it and guide us how to generate image from passing url.
public IActionResult Index(string url)
{
// Invoke the ConvertHTML method to convert the HTML code to JPG image
Converter.ConvertHTML(@“
Convert HTML to JPG!
”, “.”, new ImageSaveOptions(ImageFormat.Jpeg), Path.Combine(OutputDir, “convert-with-single-line.jpg”));return View();
}