title: Pdf generated using domtoimage ,jspdf is differed from original HTML page
body: <p>As I want to convert my html into pdf ,I used domtoimage to convert the html into pdf.The pdf was generated but not exactly as how it displayed in original html...As I am pretty new to this domtoimage..I can't figure out the exact solution.I referred the other questions similar to this but none of the solutions are worked out here..
  HTML image : <a href="https://i.stack.imgur.com/xhWHw.png" rel="nofollow noreferrer">1</a>: <a href="https://i.stack.imgur.com/Gr6w5.png" rel="nofollow noreferrer">https://i.stack.imgur.com/Gr6w5.png</a>
  Pdf image: <a href="https://i.stack.imgur.com/xhWHw.png" rel="nofollow noreferrer">pdf generated image</a></p>
  
  <p>domtoimage conversion code:</p>
  
  <pre><code>this.loadImage(this.depoLogoPath).then((logo) =&gt; {
      const div = document.getElementById('content');
      const options = { background: 'white', allowTaint: true};
      domtoimage.toPng(div, options).then((dataUrl) =&gt; {
        const doc = new jspdf('p', 'mm', 'letter');
        var width = doc.internal.pageSize.getWidth();
        var height = doc.internal.pageSize.getHeight();
        doc.addImage(dataUrl, 'PNG', 0, 0, width, height);
        doc.save('pdfDocument.pdf');
      });});
  </code></pre>
  
  <p>Thanks in Advance !!</p>