Styling only specific columns in pdfHtml5
Styling only specific columns in pdfHtml5
With doc.defaultStyle.noWrap = true; I can noWrap the whole table when exporting to pdf. But how can I apply noWrap only to a certain column? So e.g. only to column 5 and 7 ?
{
extend: 'pdfHtml5',
text: 'PDF',
exportOptions: {
columns: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
},
customize: function(doc) {
doc.defaultStyle.noWrap = true;
}
}
Many thanks
This discussion has been closed.
Answers
I'm afraid that this is a pdfmake specific question. I don't know their API well enough to be able to answer it. You'd need to go through their documentation or support channels.
Allan