title: jsPDF + rasterizeHTML not working?
body: <p>jsPDF's <code>addHTML</code> requires <code>html2canvas.js</code> or <code>rasterizeHTML.js</code>.</p>
  
  <p>I want to use <code>rasterizeHTML.js</code> but it doesn't work. Couldn't find any example online.</p>
  
  <p><strong>Working with <code>html2canvas.js</code>:</strong></p>
  
  <p>html</p>
  
  <pre><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.2.61/jspdf.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/0.4.1/html2canvas.min.js"&gt;&lt;/script&gt;
  
  
  &lt;body&gt;
      &lt;p id="to-pdf"&gt;HTML content...&lt;/p&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>js</p>
  
  <pre><code>var pdf = new jsPDF('p','pt','a4');
  pdf.addHTML(document.body,function() {
      pdf.save('web.pdf');
  });
  </code></pre>
  
  <p><strong>Not working with <code>rasterizeHTML.js</code> (nothing happens; no errors):</strong></p>
  
  <p>html</p>
  
  <pre><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.2.61/jspdf.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/rasterizehtml/1.2.2/rasterizeHTML.allinone.js"&gt;&lt;/script&gt;
  
  
  &lt;body&gt;
      &lt;p id="to-pdf"&gt;HTML content...&lt;/p&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>js</p>
  
  <pre><code>var pdf = new jsPDF('p','pt','a4');
  pdf.addHTML(document.body,function() {
      pdf.save('web.pdf');
  });
  </code></pre>
  
  <p>What am I missing?</p>