1var doc = new jsPDF();
2doc.autoTable({
3 columnStyles: { europe: { halign: 'center' } }, // European countries centered
4 body: [
5 { europe: 'Sweden', america: 'Canada', asia: 'China' },
6 { europe: 'Norway', america: 'Mexico', asia: 'Japan' },
7 ],
8 columns: [
9 { header: 'Europe', dataKey: 'europe' },
10 { header: 'Asia', dataKey: 'asia' },
11 ],
12})