pdf maya dan fizikal

This commit is contained in:
nurafrinaalimi16
2024-04-30 11:05:34 +08:00
parent 11df759ffc
commit 2041b7f0b0
8 changed files with 458 additions and 21 deletions
@@ -3,6 +3,8 @@
<div class="panel-body">
<h4>Kedatangan Fizikal</h4>
<a class="btn btn-warning" :href="getFizikalPDFurl(1)">Muat Turun PDF</a>
<div class="table-responsive">
<table class="table table-hover">
<thead>
@@ -93,16 +95,11 @@ export default {
}
},
// downloadPDF() {
// const table = document.getElementById('voterTable');
getFizikalPDFurl(Id) {
// Construct and return the URL based on the item ID
return `/fizikalpdf/${Id}`;
},
// 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');
// });
// },
},
@@ -3,6 +3,8 @@
<div class="panel-body">
<h4>Kedatangan Maya</h4>
<a class="btn btn-warning" :href="getMayaPDFurl(1)">Muat Turun PDF</a>
<div class="table-responsive">
<table class="table table-hover">
<thead>
@@ -93,16 +95,10 @@ export default {
}
},
// 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');
// });
// },
getMayaPDFurl(Id) {
// Construct and return the URL based on the item ID
return `/mayapdf/1`;
},
},