i need to convert my html div to canvas and i am using html2canvas right now but it only captures the visible part of the window. i mean to say it is not capture the whole dive which has horizontal scroll.
So is there any way to capture whole div with horizontal scroll or any suggestion in html2canvas for the same.
here is the code i used
var element = document.getElementsByClassName('ppm_portlet_data');
html2canvas(element[0], { width: element[0].offsetWidth, height: element[0].offsetHeight }).then(function (canvas) {
console.log(canvas.toDataURL());
Canvas2Image.saveAsPNG(canvas);
console.log(canvas.width, canvas.height);
});