title: Align one column with pdfmake and datatables
body: <p>Trying to align 1 column to the left with the other columns centered in PDFMAKE using a dynamically generated mysql table and datatables, the code i have works if you disable pagination, but with pagination it only justify's the first 25 rows that are displayed on the screen, any ideas?</p>
  
  <pre><code>$(document).ready(function() {
  $("#loops").DataTable( {
    dom:
    "&lt;'row'&lt;'col-sm-3'l&gt;&lt;'col-sm-6 text-center'B&gt;&lt;'col-sm-3'f&gt;&gt;" +
    "&lt;'row'&lt;'col-sm-12'tr&gt;&gt;" +
    "&lt;'row'&lt;'col-sm-5'i&gt;&lt;'col-sm-7'p&gt;&gt;",
    buttons: [
      {
        extend: 'pdfHtml5',
        pagesize: 'A3',
        text: 'Export to PDF',
        orientation: 'landscape',
        customize: function (doc) {
          var rowCount = document.getElementById("loops").rows.length;
              for (i = 0; i &lt; rowCount+1; i++) {
                  doc.content[1].table.body[i][5].alignment = 'left';
              };
          doc.styles.tableHeader.fontSize = 7;
          doc.defaultStyle.fontSize = 7;
          doc.content[1].table.widths = [60, 100, 70, 70, 60, '*', 90, 20, 20]
          doc.styles.tableBodyEven.alignment = 'center';
          doc.styles.tableBodyEven.noWrap = true;
          doc.styles.tableBodyOdd.alignment = 'center';
          doc.styles.tableBodyOdd.noWrap = true;
          doc.styles.tableBodyOdd.fillColor = '#f3f3f3';
        },
      },
    'copy', 'excel'
    ]
  } );
  } );
  </code></pre>