My table has 13 columns. How can I get different width for each column? Can I give each column width like this?
styles: {overflow: \'linebreak\' ,columnWidt
You would have to transform your columnWidth array to look like this:
doc.autoTable({ html: '#table', columnStyles: { 0: {cellWidth: 100}, 1: {cellWidth: 80}, 2: {cellWidth: 80}, // etc } });
Note the use of columnStyles instead of styles.
columnStyles
styles