javascript - Get base64 results or Blob from PDFMake working in IE -


i need generate pdf template in ie11 browser, template dynamically created , works on other browsers (chrome, safary, etc)

after researching on site found mix answers regarding how pdf @ least give download option, nothing seems work.

could point me in right direction dependencies / references needed ie, need download link reference?

here sample code found here leaves ie hang , nothing...

thanks!

dd = contains pdf document definition...

    $('body').append("<div id='downloadify'></div>")     var pdfdocument;     var pdfoutput;     var filename = "optionalname.pdf";      pdfdocument = pdfmake.createpdf(dd);     pdfdocument.getbase64(function(outdoc) {         pdfoutput = outdoc;     });      $("#downloadify").downloadify({         filename: filename,         datatype: 'base64',         data: pdfoutput,         oncomplete: function () {                         pdfoutput = null; // cleaning                         alert('done');                 },         oncancel: function() {                         pdfoutput = null; // cleaning                         alert('cancelled');                 },         onerror: function() {                      alert('you must put in file contents or there nothing save!');                              },         swf: './downloadify/media/downloadify.swf',         downloadimage: './downloadify/images/download.png', // transparant image put own button under it, have button underneath of width 110 , height 30,         width: 110,         height: 30,         transparent: true,         append: false     });      


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -