Can you tell me how to add a blue line above and beneath the table with jsPDF like in the example here? I have problems with the documentation (https://github.com/simonbengtsson/jsPDF-AutoTable) and can't modify the header.
//export table to pdf
function generatePDF() {
var doc = new jsPDF('p', 'pt', 'a4');
doc.setFontSize(14);
doc.text("Title of Diagram and Table", 40, 45);
var elem = document.getElementById('table_with_data');
var data = doc.autoTableHtmlToJson(elem);
doc.autoTable(data.columns, data.rows, {
margin: {left: 35},
margin: {top: 70},
theme: 'plain',
alternateRowStyles: { fillColor: [246, 246, 246] },
tableWidth: 'auto',
fontSize: 8,
overflow: 'linebreak',
}
);
doc.save('results.pdf');
}