I need the screenshot that is taken with html2canvas to be in a hidden div, since it is shown on the page and I definitely do not want it to do that. I tried putting the div in the html giving it an id but it does not work. This is the code I have for the capture:
$scope.pdfExport = function() {
html2canvas(document.body, {
onrendered: function(canvas) {
document.body.appendChild(canvas);
},
width: 300,
height: 100
});
html2canvas($("#tablaTransferencia"), {
onrendered: function(canvas) {
document.body.appendChild(canvas);
},
});
}