1

I'am trying to take the screenshot of the webpage using java code. I am using google api to get the screenshot.But it has only limited offer and not free.Can anyone help me to get the code

KishanCS
  • 1,357
  • 1
  • 19
  • 38
Vikas
  • 141
  • 1
  • 1
  • 11

1 Answers1

0

In a webpage you can use a html2canvas in HTML 5.

For more you can read here.

Something like this:

To run html2canvas on an element with some options simply call:

html2canvas(element, options);

The rendered canvas is provided in the callback event onrendered, as such:

html2canvas(element, {
    onrendered: function(canvas) {
        // canvas is the final rendered <canvas> element
    }
});

For more read here: https://html2canvas.hertzen.com/documentation.html.

To do it Java read this answer.

Community
  • 1
  • 1
Pritam Banerjee
  • 17,953
  • 10
  • 93
  • 108