activate ot download

This commit is contained in:
amazuecos
2025-05-19 23:05:02 +02:00
parent 42edf2bbc0
commit 976c7980d4

View File

@ -1,12 +1,11 @@
// $(() => {
// var opt = {
// margin: 2,
// filename: $(".pdf-wrapper").data("id") + ".pdf",
// image: { type: 'jpeg', quality: 1 },
// html2canvas: { scale: 4 },
// jsPDF: { unit: 'mm', format: 'a4', orientation: 'portrait' },
// pagebreak: { mode: ['avoid-all', 'css', 'legacy'] }
// };
// let elementToPdf = $('body')[0]
// html2pdf().set(opt).from(elementToPdf).save()
// })
$(() => {
var opt = {
margin: 2,
filename: $(".pdf-wrapper").data("id") + ".pdf",
image: { type: 'jpeg', quality: 1 },
html2canvas: { scale: 4 },
jsPDF: { unit: 'mm', format: 'a4', orientation: 'portrait' },
};
let elementToPdf = $('body')[0]
html2pdf().set(opt).from(elementToPdf).save()
})