title: How to print tables on pdf with Javascript?
body: <p>What's the best way to print tables in PDF with JavaScript?</p>
  
  <p>For example, I have the next code, and if you click on "Show PDF", the table appears in PDF in a new window.
  Is it possible to implement this with the jsPDF library?</p>
  
  <pre><code>&lt;body&gt;
      &lt;table&gt;
          &lt;tr&gt;
              &lt;th&gt;example&lt;/th&gt;
              &lt;th&gt;example2&lt;/th&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;value1&lt;/td&gt;
              &lt;td&gt;value2&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/table&gt;
      &lt;br&gt;
      &lt;input type="button" value="Show PDF"&gt;
  &lt;/body&gt;
  </code></pre>