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
Asked
Active
Viewed 874 times
1 Answers
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