jspdf .. bad
This commit is contained in:
parent
f45bc1346c
commit
7bca976601
2 changed files with 0 additions and 22 deletions
|
@ -1,14 +0,0 @@
|
||||||
window.addEventListener("load", () => {
|
|
||||||
const { jsPDF } = window.jspdf;
|
|
||||||
|
|
||||||
const doc = new jsPDF();
|
|
||||||
|
|
||||||
doc.html(document.body, {
|
|
||||||
width: doc.internal.pageSize.getWidth() - 20,
|
|
||||||
windowWidth: 800,
|
|
||||||
margin: [15, 10, 10, 10],
|
|
||||||
callback: function (doc) {
|
|
||||||
doc.save(`${document.title}.pdf`);
|
|
||||||
},
|
|
||||||
});
|
|
||||||
});
|
|
|
@ -1,8 +0,0 @@
|
||||||
<script src="//html2canvas.hertzen.com/dist/html2canvas.min.js"></script>
|
|
||||||
<script
|
|
||||||
src="//cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.1/jspdf.umd.min.js"
|
|
||||||
integrity="sha512-qZvrmS2ekKPF2mSznTQsxqPgnpkI4DNTlrdUmTzrDgektczlKNRRhy5X5AAOnx5S09ydFYWWNSfcEqDTTHgtNA=="
|
|
||||||
crossorigin="anonymous"
|
|
||||||
referrerpolicy="no-referrer"
|
|
||||||
></script>
|
|
||||||
<script src="/js/libs/jspdf.js"></script>
|
|
Loading…
Reference in a new issue