mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
pdf uncomment
This commit is contained in:
@ -1,11 +1,11 @@
|
|||||||
$(() => {
|
$(() => {
|
||||||
// var opt = {
|
var opt = {
|
||||||
// margin: 2,
|
margin: 2,
|
||||||
// filename: "PDF_OrdenTrabajo_" + $(".pdf-wrapper").data("id") + ".pdf",
|
filename: "PDF_OrdenTrabajo_" + $(".pdf-wrapper").data("id") + ".pdf",
|
||||||
// image: { type: 'jpeg', quality: 1 },
|
image: { type: 'jpeg', quality: 1 },
|
||||||
// html2canvas: { scale: 4 },
|
html2canvas: { scale: 4 },
|
||||||
// jsPDF: { unit: 'mm', format: 'a4', orientation: 'portrait' }
|
jsPDF: { unit: 'mm', format: 'a4', orientation: 'portrait' }
|
||||||
// };
|
};
|
||||||
// let elementToPdf = $('body')[0]
|
let elementToPdf = $('body')[0]
|
||||||
// html2pdf().set(opt).from(elementToPdf).save()
|
html2pdf().set(opt).from(elementToPdf).save()
|
||||||
})
|
})
|
||||||
Reference in New Issue
Block a user