title: How to Remove black bg from pdf(jspdf)?
body: <p>I have converting from html to pdf by using html2canvas and jspdf.</p>
  
  <p>I am using a3 format pdf but content width ix 1000px. so after 1000px, pdf shows black background.</p>
  
  <pre><code>canvas{
      background: #fff !important;
      background-color: #fff !important
      margin: 0;
  }
  #cisForm {
      padding: 10px;
      width: 1000px;
      margin: 0;
      background: #fff !important;
  }
  </code></pre>
  
  <h1>cisForm is body</h1>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      window.onload = function() {
              html2canvas(document.body).then(function(canvas) {
                  background:'#fff',
                  document.getElementById("cisForm").appendChild(canvas);
                  document.body.appendChild(canvas);
                  var context = canvas.getContext("2d");
                  context.fillStyle="#FFFFFF";
  
                   l = {
                       orientation: 'p',
                       unit: 'pt',
                       format: 'a3',
                       compress: true,
                       fontSize: 8,
                       lineHeight: 1,
                       autoSize: false,
                       printHeaders: true
                   };
  
                  var doc = new jsPDF(l, "", "");
  doc.addImage(canvas.toDataURL("image/jpeg"),"jpeg",0,0)
                  window.location=doc.output("datauristring")
              });
          }
      &lt;/script&gt;
  </code></pre>
  
  <p>There is no use for this code. This is converting from html to pdf. </p>
  
  <p>and one more question.</p>
  
  <p>Some limited contents only coming in pdf. Some contents are not coming.</p>
  
  <p>Do we need to set no.of pages anywhere? </p>
  
  <p>How to Remove black background from pdf<a href="https://i.stack.imgur.com/brCJh.png" rel="noreferrer"><img src="https://i.stack.imgur.com/brCJh.png" alt="enter image description here"></a></p>