|
|
@@ -284,28 +284,6 @@ |
|
|
|
|
|
|
|
pdfExport(){ |
|
|
|
window.print(); |
|
|
|
//link rel="stylesheet" type="text/css" href= |
|
|
|
// let cssPrintElt = document.createElement("link"); |
|
|
|
// cssPrintElt.setAttribute('rel', 'stylesheet'); |
|
|
|
// cssPrintElt.setAttribute('type', 'text/css'); |
|
|
|
// cssPrintElt.setAttribute('media','print'); |
|
|
|
// cssPrintElt.setAttribute('href', './print.css'); |
|
|
|
// document.head.appendChild(cssPrintElt); |
|
|
|
// printJS('dedediteur', 'html') |
|
|
|
//printJS({printable:'docs/xx_large_printjs.pdf', type:'pdf', showModal:true}) |
|
|
|
// var element = document.getElementById('dedediteur'); |
|
|
|
// var opt = { |
|
|
|
// margin: 1, |
|
|
|
// filename: 'dedediteur-export.pdf', |
|
|
|
// image: { type: 'jpeg', quality: 0.98 }, |
|
|
|
// html2canvas: { scale: 2 }, |
|
|
|
// jsPDF: { unit: 'in', format: 'letter', orientation: 'portrait' } |
|
|
|
//}; |
|
|
|
|
|
|
|
|
|
|
|
// New Promise-based usage: |
|
|
|
// html2pdf().set(opt).from(element).save(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|