I am creating PDF file using jsPDF and JsAutoTable, I have a problem is how can I remove last row grid using jsPDF Autotable plugin. Hope someone can guide me how to solve it. Thanks.
This is my jsPDF Autotable code:
var doc = new jsPDF()
doc.autoTable({
html: '#dataTable',
theme: 'grid',
didParseCell: function (data) {
var rows = data.table.body;
if (data.row.index === 0) {
data.cell.styles.fillColor = [231, 232, 235];
}
}
})
function saveDiv(divId, title) {
doc.save('payment.pdf');
}
Now my output is like below the picture:
Actually, I want the expected output like below the picture: