title: Angular 7: convert HTML to PDF
body: <p>I'm trying to convert an HTML table to a PDF without success.</p>
  
  <p>I've used jsPDF to do that but the result is really poor and I'm trying to understand why.</p>
  
  <p>Considering I have a tablet, what I want is to have this table printed on A4 pages in landscape mode (using all the pages that are needed). My problem is that the PDF is composed by images (and I prefer text) and that images are in a really low quality.</p>
  
  <p>What I've tryed is this:</p>
  
  <pre><code>const html = document.getElementById('resultTable');
  const pdf = new jsPDF('landscape', 'px', 'a4');
  
  pdf.addHTML(html, 0, 0, {
      'width': html.clientWidth,
      'height': html.clientHeight
  }, () =&gt; { pdf.save('web.pdf'); });
  </code></pre>
  
  <p>I've already tried to use, as width and height, the size of the pdf page (with <em>pdf.internal.pageSize</em>) without success. And I've already tried to use 'pt' and 'mm' instead of 'px'.</p>
  
  <p>Any ideas?</p>