title: How can I style last row using jsPDF Autotable plugin?
body: <p>I create a PDF document based on a table using <code>jsPDF</code> and <code>AutoTable</code>:</p>
  
  <pre><code>var doc = new jsPDF('p', 'pt');
     //columns and rows are arrays created from the table content
          doc.autoTable(columns, rows, {
  
          drawRow: function (row) {
              if (row.index == rows.length - 1) {
                  console.log('last row');
                  //TODO
              }
          },
          pageBreak: 'avoid',
          headerStyles: {
              fillColor: [239, 154, 154],
              textColor: [0, 0, 0],
              halign: 'center'
          },
          bodyStyles: {
              halign: 'center'
          },
          margin: {top: 60},
          theme: 'striped'
      });
  
      doc.save('table.pdf');
  </code></pre>
  
  <p>What I'm trying to do is setting a different background color for the last table row. As shown in the code above, I can detect when the last row is being drawn, however I can't manage to modify it. I have tried setting the <code>row.fillColor</code> using an RGB value, which seems to have no effect.</p>
  
  <p>I also took a look at the <a href="https://github.com/simonbengtsson/jsPDF-AutoTable/blob/master/examples/examples.js" rel="nofollow">examples</a>, but couldn't find anything that could help me on that issue. Any ideas?</p>