title: JSPDF html2Cnavas download PDF not working in IOS browsers
body: <p>I am converting a DIV and download it by html2Cnavas and JSPDF but it works well in all the browsers but it doesn't work on IOS browsers, can anyone help me with this please?</p>
  <p>JS code</p>
  <pre><code>$('#print').click(function (e) { 
  e.preventDefault();
  let HTML_Width = $(&quot;.report&quot;).width();
  let HTML_Height = $(&quot;.report&quot;).height();
  let top_left_margin = 1;
  let PDF_Width = HTML_Width + (top_left_margin * 2);
  let PDF_Height = (PDF_Width * 1.5) + (top_left_margin * 2);
  let canvas_image_width = HTML_Width;
  let canvas_image_height = HTML_Height;
  let totalPDFPages = Math.ceil(HTML_Height / PDF_Height) - 1;
  html2canvas($(&quot;.report&quot;)[0]).then(function (canvas) {
      let imgData = canvas.toDataURL(&quot;image/jpeg&quot;, 1.0);
      let pdf = new jsPDF('p', 'pt', [PDF_Width, PDF_Height]);
      pdf.addImage(imgData, 'JPG', top_left_margin, top_left_margin, canvas_image_width, canvas_image_height, 'FAST');
      for (let i = 1; i &lt;= totalPDFPages; i++) {
          pdf.addPage(PDF_Width, PDF_Height);
          pdf.addImage(imgData, 'JPG', top_left_margin, -(PDF_Height * i) + (top_left_margin * 4), canvas_image_width, canvas_image_height);
      }
      pdf.save(&quot;Report.pdf&quot;);
      $(&quot;.html-content&quot;).hide();
  });
  </code></pre>
  <p>});</p>