There is exports feature available in jquery datatables, you just need to specify that what kind of exports do you want to support like:
$(document).ready(function () {
$('#table-id').dataTable({
"pagingType": "full_numbers",
"lengthMenu": [[5, 10, 25, 50, -1], [5, 10, 25, 50, "All"]],
"scrollY": "400px",
"buttons": ['pdf']
});
});
You can also
see working example with source code here