title: Displaying transparent background in conversion from PNG to JPEG for jsPDF
body: <p>I am using <code>jsPDF</code> to convert images within <code>canvas</code> to <code>toDataURL()</code>. Specifically I am dealing with <code>PNG</code>'s that once converted to <code>JPEG</code> and saved to a <code>PDF</code> file using the <code>jsPDF</code> plugin.  I recieve a black background.  I know this has to do with the <code>PNG</code> being able to  handle transparent backgrounds and <code>JPEG</code> unable to register that.  I know there are work arounds by creating some sort of background to replace the black background already inserted within that newly created <code>JPEG</code> but I am not sure how I can accomplish this?</p>
  
  <p>Suggestions, thoughts?</p>
  
  <p>Heres what I am doing:</p>
  
  <pre><code>       $(".email_button").click(function(){
              // LOOP THROUGH EACH CANVAS SECTION AND STORE THE DATA INTO PDF FORM USING JSPDF CONVERT 
              var canvas = $(".ifp_container_printing_15 canvas").get();
              var imgData = canvas[0].toDataURL('image/jpeg');
              console.log(imgData);
              var doc = new jsPDF();
              doc.addImage(imgData, "JPEG", 60,50);           
              doc.output('dataurlnewwindow');
          });
  </code></pre>