title: jsPDF fromHTML() does not show HTML
body: <p>Im working at a simple javascript.
  im using the jsPDF lib but the script load a blank pdf.</p>
  
  <p>this is the code :</p>
  
  <pre><code>    &lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt;
  
  &lt;head&gt;
      &lt;title&gt;fromHTML EX&lt;/title&gt;
      &lt;meta http-equiv="content-type" content="text/html;charset=utf-8" /&gt;
      &lt;meta name="generator" content="Geany 1.22" /&gt;
  
      &lt;script type="text/javascript" src="/root/utils/jquery-1.11.2.min.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="/root/utils/jsPDF-master1/jspdf.plugin.standard_fonts_metrics.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="/root/utils/jsPDF-master1/jspdf.plugin.split_text_to_size.js"&gt;&lt;/script&gt;
  
      &lt;script type="text/javascript" src="/root/utils/jsPDF-master1/js/basic.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="/root/utils/jsPDF-master1/jspdf.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="/root/utils/jsPDF-master1/jspdf.plugin.from_html.js"&gt;&lt;/script&gt;
  
    &lt;script type="text/javascript"&gt;
      function PDF1(){
      var doc = new jsPDF();          
      var elementHandler = {
      '#ignorePDF': function (element, renderer) {
      return true;
      }
      };
      var source = window.document.getElementsByTagName("body")[0];
      doc.fromHTML(
          source,
          15,
          15,
          {
          'width': 180,'elementHandlers': elementHandler
          });
  
      doc.output("datauri");
      }
  
      PDF1()
    &lt;/script&gt;
  
  &lt;/head&gt;
  
   &lt;body&gt;
       ASDSADASDASDSA
        &lt;div&gt;
      &lt;p id="ignorePDF"&gt;don't print this to pdf&lt;/p&gt;
  
        &lt;p&gt;&lt;font size="3" color="red"&gt;print this to pdf&lt;/font&gt;&lt;/p&gt;
      &lt;/div&gt;
  
  
  
  
    &lt;/body&gt;
  
  
  &lt;/html&gt;
  </code></pre>
  
  <p>i have tryied to put the calling function at the bottom of the page but it still don't work.
  Can someone help me?</p>