Drive Code
Drive Code
let trustedURL;
return input;
});
trustedURL = policy.createScriptURL('https://cdnjs.cloudflare.com/ajax/libs/jspdf/
1.3.2/jspdf.min.js');
} else {
trustedURL = 'https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.3.2/jspdf.min.js';
jspdf.onload = function() {
if (!/^blob:/.test(img.src)) {
continue;
canvasElement.width = img.width;
canvasElement.height = img.height;
if (i !== elements.length - 1) {
pdf.addPage();
pdf.save("download.pdf");
};
jspdf.src = trustedURL;
document.body.appendChild(jspdf);
HORIZONTAL:
let trustedURL;
return input;
});
trustedURL = policy.createScriptURL('https://cdnjs.cloudflare.com/ajax/libs/jspdf/
1.3.2/jspdf.min.js');
} else {
trustedURL = 'https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.3.2/jspdf.min.js';
jspdf.onload = function() {
if (!/^blob:/.test(img.src)) {
continue;
canvasElement.width = img.width;
canvasElement.height = img.height;
if (i !== elements.length - 1) {
pdf.addPage();
pdf.save("download.pdf");
};
jspdf.src = trustedURL;
document.body.appendChild(jspdf);