title: jsPDF fromHTML images cause the pdf to be empty
body: <p>I'm trying to generate a pdf out of Tinymce Content, which I access with AngularJS. For This I use the from_html plugin inside jspdf. </p>
  
  <p>First the relevant code parts.</p>
  
  <p><strong>Relevant Function &amp; Index.ejs jspdf includes</strong></p>
  
  <p><div class="snippet" data-lang="js" data-hide="true">
  <div class="snippet-code snippet-currently-hidden">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>//relevant function
  var specialElementHandlers = {
    '#bypassme': function(element, renderer) {
      return true;
     }
  };
  
  var margin = {
    top: 0,
    left: 0,
    right: 0,
    bottom: 0
  };
  
  var tinymceToJSPDFHTML = document.createElement("body");
  tinymceToJSPDFHTML.innerHTML = $scope.selectedItem.content;
        
  var doc = new jsPDF();
  doc.fromHTML(tinymceToJSPDFHTML, 0, 0, {
    'width': 100, // max width of content on PDF
    'elementHandlers': specialElementHandlers
  }, function(a) { console.log(a); }, margin);
  
  doc.save('project.pdf');</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="/libs/jsPDF-1.2.61/dist/jspdf.debug.js"&gt;&lt;/script&gt;
  &lt;script src="/libs/jsPDF-1.2.61/plugins/from_html.js"&gt;&lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>The Code that I want to parse from html to pdf looks somewhat like this, this is just an example.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="true">
  <div class="snippet-code snippet-currently-hidden">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;strong&gt;
          &lt;img data-mce-src="file/3605842ba1b6e8ac5417622bf1c43b5b" src="file/3605842ba1b6e8ac5417622bf1c43b5b"&gt;&lt;/img&gt;
  
          aaaaa
  
      &lt;/strong&gt;
  
  &lt;/p&gt;
  &lt;p data-mce-style="text-align: center;" style="text-align: center;"&gt;
  
      &lt;strong&gt;
  
          sasasa
  
      &lt;/strong&gt;
  
  &lt;/p&gt;
  &lt;p data-mce-style="text-align: right;" style="text-align: right;"&gt;
  
      &lt;em&gt;
          &lt;strong&gt;
  
              asasas
  
          &lt;/strong&gt;
      &lt;/em&gt;
  
  &lt;/p&gt;
  &lt;p data-mce-style="text-align: left;" style="text-align: left;"&gt;
  
      &lt;span data-mce-style="text-decoration: underline;" style="text-decoration: underline;"&gt;
          &lt;em&gt;
              &lt;strong&gt;
  
                  asasasa
  
              &lt;/strong&gt;
          &lt;/em&gt;
      &lt;/span&gt;
  
  &lt;/p&gt;
  &lt;ul&gt;
  
      &lt;li data-mce-style="text-align: left;" style="text-align: left;"&gt;
          &lt;span data-mce-style="text-decoration: underline;" style="text-decoration: underline;"&gt;
              &lt;em&gt;
                  &lt;strong&gt;
  
                      bas
  
                  &lt;/strong&gt;
              &lt;/em&gt;
          &lt;/span&gt;
      &lt;/li&gt;
  
  &lt;/ul&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>If I parse this code without the image, it's at least working for some part, some text manipulations like italic are not really recognized and also lists are not recognized by the parser.</p>
  
  <p>However if I parse an image (all the images I tried are standard .jpg pictures from for example the windows picture folder and I downscaled them in case they wouldn't fit on the pdf site and that's what causes the empty site.</p>
  
  <p>I debugged the jspdf code so far a little could see that it runs through the methods for load image. Also get-requests are sent from this code, as shown in the Browser Debugger (this routine is also written by me). But still the site remains empty. the exact same img src is displayed in the editor perfectly fine.</p>
  
  <p>How can I fix this problem, so the image is shown at all and it doesn't cause the pdf to be empty. </p>