html2canvas is a JavaScript HTML-rendering library that lets you take screenshots of webpages based on the DOM.