188
rated 0 times
[
192]
[
4]
/ answers: 1 / hits: 24278
/ 6 Years ago, tue, october 23, 2018, 12:00:00
I know this has been asked before but I can't seem to find the answer, how to add page break, my page cut if convert to pdf ..??
html2canvas(document.getElementById("content")).then(function (canvas) {
var img = canvas.toDataURL("image/png");
var doc = new jsPDF({
orientation: "landscape",
format: "a4",
});
doc.addImage(img, "JPEG", 1, 5);
doc.save("testCanvas.pdf");
});
More From » jquery