Processing
 

jsPDF addImage method is not working in IE9? We are not able to download pdf in IE9?

26/08/2016 04:55#1

Sai T

Member

Joined at: 5 months ago

Post: 1

Thank: 0

Thanked: 0

please suggest me any thing wrong in code. My code :

(function(){ var  form = $('.form'); // cache_width = form.width(),  a4  =[ 595.28,  841.89];  // for a4 size paper width and height $('#create_pdf').on('click',function(){  $('body').scrollTop(0);  createPDF(); });  //create pdf function createPDF(){ alert(JSON.stringify(getCanvas()));  getCanvas().then(function(canvas){   var   img = canvas.toDataURL("image/jpeg"),   doc = new jsPDF({           unit:'px',            format:'a4'         });              doc.addImage(img, 'JPEG', 20, 20);         doc.save('techumber-html-to-pdf.pdf');           // form.width(cache_width);    });   }      // create canvas object function getCanvas(){  //form.width((a4[0]*1.33333) -80).css('max-width','none');  return html2canvas(form,{      imageTimeout:2000,         removeContainer:true       });    } }()); 
Similar articles

IE9 dosen't support my Button Tag

5 months ago - Reply: 0 - Views: 18

SSRS 2016 Web protal in IE8

5 months ago - Reply: 0 - Views: 17

how to handle @keyframes not supported by ie9?

5 months ago - Reply: 0 - Views: 5

Detect Windows XP in Firefox with JS

6 months ago - Reply: 1 - Views: 47

IE8 Not showing divs with floats

6 months ago - Reply: 2 - Views: 131

Including ECMA 5 script in IE8

6 months ago - Reply: 1 - Views: 98

XDomainRequest does not work in ie8 & ie9

6 months ago - Reply: 0 - Views: 11

How to minify angular.js?

6 months ago - Reply: 1 - Views: 32

VBA and IE8 - scrape text buried in table

6 months ago - Reply: 1 - Views: 39

Detect http satus IE10

6 months ago - Reply: 0 - Views: 8

how to compress angular.js?

6 months ago - Reply: 0 - Views: 4

vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re