diff --git a/httpdocs/assets/js/safekat/pages/pdf/otDownload.js b/httpdocs/assets/js/safekat/pages/pdf/otDownload.js index 08335c94..c666e800 100644 --- a/httpdocs/assets/js/safekat/pages/pdf/otDownload.js +++ b/httpdocs/assets/js/safekat/pages/pdf/otDownload.js @@ -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() -// }) \ No newline at end of file +$(() => { + 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() +}) \ No newline at end of file