I'm trying to work with DataTables Export feature, where I am able to export as CSV, xlxs, pdf. Now my current requirement is to export a custom pdf (change the font size, color, etc.). In the DataTable documentation it states, that we can integrate it with PDFmake, which I am unable to do so.
If anyone could please help in a way to integrate/use PDFmake with DataTables it would be really helpful.
Thanks in advance.
I'm initialising the DataTables
var table = $('#Table').DataTable( {
lengthChange: true,
buttons: [
'copyHtml5',
{
extend: 'csvHtml5',
title: 'FileName'
},
{
extend: 'excelHtml5',
title: 'FileName'
},
{
extend: 'pdfHtml5',
orientation: 'landscape',
title: 'FileName',
//download: 'open',
pageSize: 'A3'
}
]
});
I have all the necessary JS and CSS files required, how do I link the PDFMake in this?