title: jsPDF fromHTML(): Text Align Center not Working
body: <p>I'm trying to generate html code to a pdf document using jsPDF. Everything works as expected, except the text alignment.</p>
  
  <p>Generated PDF:
  <a href="https://i.stack.imgur.com/Kq1jM.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Kq1jM.jpg" alt="Generated PDF Document"></a></p>
  
  <p>Javascript:</p>
  
  <pre><code>var html = '&lt;p style="text-align:center;"&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&lt;/p&gt;';
  
  pdf.fromHTML(html, 20, 90, {
      'width': 180
  });
  
  pdf.save('test.pdf');
  </code></pre>
  
  <p>Why is the text not centered correctly?</p>
  
  <p><strong>UPDATE: Resolved my issue ditching jsPDF and using <a href="http://pdfmake.org" rel="nofollow noreferrer">PDFmake</a> instead.</strong></p>