<style>
#example{
display:none
}
</style>
<link rel="stylesheet"
href="https://cdn.datatables.net/buttons/1.1.0/css/buttons.dataTables.min.css"
type="text/css"  />
<link rel="stylesheet"
href="https://cdn.datatables.net/1.10.10/css/jquery.dataTables.min.css"
type="text/css" />
<link rel="stylesheet"
href="https://cdn.datatables.net/select/1.1.0/css/select.dataTables.min.css"
type="text/css" />
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<script type="text/javascript"
src="https://datatables.net/release-datatables/media/js/jquery.js"></script>
<script type="text/javascript"
src="https://datatables.net/release-datatables/media/js/jquery.dataTables.js"></script>
<script type="text/javascript"
scr="https://datatables.net/release-datatables/extensions/TableTools/js/dataTables.tableTools.js"></script>
<script
src="https://cdn.datatables.net/buttons/1.1.0/js/dataTables.buttons.min.js"></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/jszip/2.5.0/jszip.min.js"></script>
<script
src="https://cdn.rawgit.com/bpampuch/pdfmake/0.1.18/build/pdfmake.min.js"></script>
<script
src="https://cdn.rawgit.com/bpampuch/pdfmake/0.1.18/build/vfs_fonts.js"></script>
<script
src="https://cdn.datatables.net/buttons/1.1.0/js/buttons.html5.min.js"></script>
<script
src="https://jquery-datatables-column-filter.googlecode.com/svn/trunk/media/js/jquery.dataTables.columnFilter.js"
type="text/javascript"></script>
<table id="example" class="display" cellspacing="0" width="100%">
    <thead>
        <tr>
            <th>Name</th>
            <th>Position</th>
            <th>Office</th>
            <th>Age</th>
            <th>Start date</th>
            <th>Salary</th>
        </tr>
    </thead>
<tbody>
        <tr>
            <th>Name1</th>
            <th>Posit1ion</th>
            <th>Offic1e</th>
            <th>Age1</th>
            <th>Sta1rt date</th>
            <th>Sal1ary</th>
        </tr>
</tbody>
</table>
<script>
$(document).ready(function() {
var oTable = $('#example').DataTable( {
        dom: 'Blfrtip',
"paging":   false,
        "ordering": false,
        "info":     false,
'searching':false,
        buttons: [
       {
           extend: 'pdf',
           footer: false,
           exportOptions: {
                columns: [1,2]
            }
       },
       {
           extend: 'csv',
           footer: false
       },
       {
           extend: 'excel',
           footer: false
       }
    ]
    } );
} );
</script>