ExpertPdf Html To Image Converter
ExpertPdf is a .NET library that lets you create PDF documents from web pages or raw HTML markup in your applications.
Besides the html to pdf converter, ExpertPdf also offers a powerful html to image converter, included in the same assembly.
With ExpertPdf image converter you can convert from html to jpeg, html to png or html to bmp without any effort.
The image converter, just like the pdf converter, supports all modern HTML5/CSS3 tags.
Using ExpertPdf HTmlToImage Converter you can easily capture an url or html string as an image. You can generate a thumbnail image of an website page in .NET or capture a full size screenshot of the web page using C# or VB.NET.
Key features of Html to Image Converter
- Generate website thumbnail image.
- Capture full size screenshot of any web page.
- Convert HTML to Image (html to jpeg, html to png, html to bmp).
- Save generated image on disk or memory.
- Take a snapshot of a whole webpage into one image without scrollbars.
- Ability to retrieve page for capturing via HTTP, HTTPS, or from a local file.
- Supports JPG, GIF, PNG, BMP and TIF image formats.
- Works both in 32-bit and 64-bit environments.
- Assemblies for .NET 2.0 and .NET 4.0 or above.
- Nuget packages for .NET Core, .NET 5, .NET 6.
- No printer driver or any third party tools.
- Ability to set timeout seconds of web page to load.
- Supports delayed snapshots of web page.
- Multithreaded architecture for simultaneous processing of multiple requests.
// create the image converter
ImgConverter imgConverter = new ImgConverter(pageWidth, pageHeight);
// generate the image from the url
imgConverter.SaveImageFromUrlToFile(url, ImageFormat.Png, outFile);
'create the image converter
Dim imgConverter As ImgConverter = New ImgConverter
'generate the image from the url
imgConverter.SaveImageFromUrlToFile(url, ImageFormat.Png, outFile)