Check out the Asposehtml Cloud API.
Aspose.HTML Cloud is a REST API for manipulating and converting the HTML documents. You can render HTML document into document formats such as PDF and XPS, or into raster image formats such as TIFF, BMP, PNG, and JPEG. You can also select the HTML page markup fragments using the XPath query and extract the images.
Connect to API