javascript - Error in function: '[object BlobConstructor]' is not a constructor -
javascript - Error in function: '[object BlobConstructor]' is not a constructor -
i have code converts html pdfs using jspdf. works great in chrome , firefox, upon testing in safari, given message: error in function: '[object blobconstructor]' not constructor
. here code:
var doc = new jspdf("p", "pt", "letter"); $(document).ready(function () { $("#runpdf").click(function (event) { $(document.body).width(1903); var count=0; $("section").each(function() { $(this).children('footer').children('article').append($(document.createelement('span')).text((count+1)+".").css("float","right").css("font-weight", "900").css("font-size","150%")); count++; }); var pages = $(".page5"); var remaining = pages.length; pages.each(function () { html2canvas($(this), { logging: true, profile: true, allowtaint: true, letterrendering: true, onrendered: function (canvas) { var imagedata = canvas.todataurl("image/jpeg"); doc.addimage(imagedata, 'jpeg', -425, 0, 1450, 800); remaining--; if (remaining === 0) { doc.save('test.pdf'); } doc.addpage(); } }); }); }); });
any ideas on how prepare safari problem? in advance
javascript safari cross-browser runtime-error jspdf
Comments
Post a Comment