Como tirar capturas de tela no navegador usando JavaScript
const screenshotTarget = document.body;
html2canvas(screenshotTarget).then((canvas) => {
const base64image = canvas.toDataURL("image/png");
window.location.href = base64image;
});
Attractive Anaconda