mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
activate ot download
This commit is contained in:
@ -1,12 +1,11 @@
|
|||||||
// $(() => {
|
$(() => {
|
||||||
// var opt = {
|
var opt = {
|
||||||
// margin: 2,
|
margin: 2,
|
||||||
// filename: $(".pdf-wrapper").data("id") + ".pdf",
|
filename: $(".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' },
|
||||||
// pagebreak: { mode: ['avoid-all', 'css', 'legacy'] }
|
};
|
||||||
// };
|
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