I am trying to work with the DataTables export function, where I can export CSV, xlxs, pdf. Now my current requirement is to export custom PDF (change font size, color, etc.). The DataTable documentation states that we can integrate it with PDFmake, which I cannot do.
If someone can help integrate / use PDFmake with DataTables, that would be very helpful.
Thanks in advance.
I initialize 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, how can I link PDFMake with this?
source share