I have been trying to set the column width for a PDF export in Tabulator. Using http://tabulator.info/docs/4.5/download#pdf and https://github.com/simonbengtsson/jsPDF-AutoTable#styling-options as references, I wrote this code:
table.download("pdf", "data.pdf", {
"orientation":"portrait",
"autoTable":{
"columnStyles": {
"allocated_site_name": {"cellWidth": 20}
},
margin: {
"top": 40,
"right": 20,
"bottom": 20,
"left": 20
}
}
});
However, it seems as though columnStyles is ignored, although margin works.
Am I doing anything wrong?
I am using:
- Tabulator 4.5
- jspdf 1.3.5
- jspdf-autotable 3.0.5
Thank you!