-3

I want to save screenshot of the current page ( full page with scroll) and save it as an image or pdf .

Abhinav
  • 89
  • 1
  • 3
  • 8

1 Answers1

0

You can use html2canvas js library to take a screen shot and then use canvas in javascript to download/save.

HTML

<button id="save-img">Download</button>

JS/jQuery

$("#save-img").click(function () {
    html2canvas(document.body, {
        onrendered: function(canvas) {
            document.location = canvas.toDataURL("image/png");
        }
    });
});

Or read this article if you want to achieve this in asp.net using DataVisualization.

Hope that helps.

yaloumi
  • 198
  • 1
  • 9