title: How to skip last row in datatable export option (.csv pdf options)
body: <p>My script is below.
  I want to skip my last row in excel and pdf.</p>
  
  <pre><code>$('.data-grid-export').DataTable({
      dom: 'Blfrtip',
      buttons: [
          {
              extend: 'pdf',
              footer: true,
          },
          {
              extend: 'excel',
              footer: false
          }
      ]
  });
  </code></pre>