title: HTML5 canvas, convert canvas to PDF with jspdf.js
body: <p>I am trying to convert HTML5 canvas to PDF in JavaScript but I get a black background PDF. I tried to change the background color but still get black. The following is code I am trying:</p>
  
  <pre><code>Canvas = document.getElementById("chart");
  Context = Canvas.getContext("2d");
  
  var imgData = Canvas.toDataURL('image/jpeg');
  var pdf = new jsPDF('landscape');
  pdf.addImage(imgData, 'JPEG', 0, 0, 1350, 750);
  pdf.save('download.pdf');
  </code></pre>
  
  <p>If you have any idea, I'd appreciate it very much. </p>