diff --git a/httpdocs/assets/js/safekat/pages/pdf/otDownload.js b/httpdocs/assets/js/safekat/pages/pdf/otDownload.js index 093f26cb..11006c26 100644 --- a/httpdocs/assets/js/safekat/pages/pdf/otDownload.js +++ b/httpdocs/assets/js/safekat/pages/pdf/otDownload.js @@ -1,11 +1,11 @@ $(() => { - // var opt = { - // margin: 2, - // filename: "PDF_OrdenTrabajo_" + $(".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() + var opt = { + margin: 2, + filename: "PDF_OrdenTrabajo_" + $(".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