disable pdf library
This commit is contained in:
@@ -82,9 +82,6 @@
|
||||
|
||||
<script>
|
||||
|
||||
import html2canvas from 'html2canvas';
|
||||
import jsPDF from 'jspdf';
|
||||
|
||||
export default {
|
||||
data: function () {
|
||||
return {
|
||||
@@ -128,16 +125,16 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
downloadPDF() {
|
||||
const table = document.getElementById('voterTable');
|
||||
// downloadPDF() {
|
||||
// const table = document.getElementById('voterTable');
|
||||
|
||||
html2canvas(table).then(canvas => {
|
||||
const imgData = canvas.toDataURL('image/png');
|
||||
const pdf = new jsPDF();
|
||||
pdf.addImage(imgData, 'PNG', 0, 0);
|
||||
pdf.save('kehadiran-pengundi.pdf');
|
||||
});
|
||||
},
|
||||
// html2canvas(table).then(canvas => {
|
||||
// const imgData = canvas.toDataURL('image/png');
|
||||
// const pdf = new jsPDF();
|
||||
// pdf.addImage(imgData, 'PNG', 0, 0);
|
||||
// pdf.save('kehadiran-pengundi.pdf');
|
||||
// });
|
||||
// },
|
||||
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user