title: JsPDF addImage jpeg background is black
body: <p>I use JsPDF library and I have a problem, when I use addImage format 'JPEG' my background is black. Why this format? Because when I use format "PNG" - size file PDF after saving 12 charts = 100 MB ++ . I see all question and does not find the exact answer to it.
  My functions looks like that:</p>
  
  <pre><code>&lt;canvas id = 'myCanvas'&gt;&lt;/canvas&gt;
  
  var doc = new jsPDF('p','pt', 'a2');
  var canvas = document.querySelector('#myCanvas');
  var canvasImg = canvas.toDataURL('image/JPEG');
  doc.addImage(canvasImg,'JPEG', 70,700,1000,300 ); //left, from above, width, height
  doc.addHTML($(id_page),function(){
    doc.save('test.pdf');
  });
  </code></pre>
  
  <p>This is default template, but i tried add more style including "setFillColor" - uselessly! Tried add white canvas with "destination-over", nice idea but... realization, today 2018 year, may be who find working solution, I really hope at least for some working information. Many thanks.</p>