Jspdf: downloading not working in IE 11

Created on 9 Jun 2015  ·  28Comments  ·  Source: MrRio/jsPDF

Hi,

Nothing is getting downloaded in IE 11. It is working in firefox and chrome. Please assist, it is kind of urgent for me..

Thanks

Bug browserspecific

Most helpful comment

SCRIPT5009: 'Promise' is undefined
jspdf.min.js (5220,9)

SCRIPT438: Object doesn't support property or method 'getStringUnitWidth'
jspdf.plugin.autotable.js (207,9)

are these issues fixed for IE 11 ? I tried going through previous issues but couldn't find any that could solve this. Kindly let me know asap, thanks!!

Had the same issue, and it is all caused by IE11 not supporting Promise. I was able to fix it by adding promise.min.js. Make sure it loads before jspdf.min.js.

All 28 comments

Hi,

Please update me on this. Did you get a chance to replicate the issue in IE 11. It says could not download. Try again.

Thanks
Ankur Garg

Having a similar problem.. Tables and images will print out in IE but not basic text. Even in the examples given. using IE11, swapped it to IE10 mode but no success with that.

Any updates?

I have a similar issue than @adamaoc describe. Generating a PDF from HTML doesn't work as expected here in Internet Explorer 11 on Microsoft Windows 8.1. If the HTML contains an image, for example, they are well printed, but simple text are not printed at all.

Probably this do not help but in my test I note that if only text is included into the HTML Internet Explorer 11 do not throw any error, but if an image is included into the HTML then Internet Explorer 11 stop with an error at the 15637 line of "jspdf.debug.js" version 1.1.135-git Built on 2015-05-16T00:15.

Apparently there is a problem to access the "pdf.canvas" property.

same here, mine says "SCRIPT5009: 'atob' is undefined"

text starts showing up after including html2canvas

I have the same issue. But know that it is important to print at the right moment because of a callback function. See below. I can only print tables and images now.

doc.fromHTML(
source
, margins.left // x coord
, margins.top // y coord
, {
'width': margins.width // max width of content on PDF
,
'elementHandlers': specialElementHandlers
},
function(dispose) {
// dispose: object with X, Y of the last line add to the PDF
// this allow the insertion of new lines after html
doc.save('file.pdf')
},
margins
);

I've not been able to generate PDF from HTML in IE 11, but the following works for text:

http://jsfiddle.net/Q5Xc9/1/

@ankur2728 @adamaoc any updates on this or any workaround for this?

@codeReadyy - I don't believe we did. I think we ended up using a C# library to generate the PDF instead of this. It's been a while though.

@codeReadyy Any updates on this? Maybe we should use a slightly older version?

@cwahlfeldt - I have created a working plunkr. Please have a look at it. Tested in IE11, chrome, microsoft edge(all version).

#425

I used the html2canvas will be converted to the image of the Echarts icon, and then save the picture as PDF, but in IE11 and Edge can not download the following。someone can help me?it is kind of urgent for me.. thanks

@Timeisnotold what error you are getting? Can you please share code block or plunkr where we can see it?

well, what do you expect from code which is not able to set pagebreaks by itself?

Changing it from landscape to portrait-mode?

IE Is dead use Edge if you wanna use a Microsoft browser, and both IE and Edge have a so small market that nobody make support for them any more, maybe Edge next year

Duplicate of #697

Hi,
i have similar Problem.
No Download in IE but it´s all fine in all other Browsers.
Any updates on this?
Greetz

Same here as @tschero… I also have an error in the console. What about you?
L'objet ne gère pas la propriété ou la méthode "getStringUnitWidth"
The error line is this one:
var width = state_1.default().doc.getStringUnitWidth(line);

Hope someone can help on this…

With this Version of jsPDF it works in IE 11:

File should be attached here but i doesen´t see.

No files :s

I can not work in ie11, the error is "SCRIPT5007: Object expected;jspdf.debug.js (3648,11)" ?anyone can help me?

File Attachement on GitHub does not work at my System here.
I post the jspdf Version on my Website.
@MrRio:
If that is not OK for you, please let me Know and i´ll disable the Post:

https://www.webdesign24.biz/news-leser/online-pdf-mit-javascript-und-jspdf.html

I still can't find a solution in IE 11, even reverting to Version 1.4.1.

Seeing "Object doesn't support property or method 'fromHTML" in console. I know 'fromHTML' was deprecated in 1.5 but wasn't it working correctly in IE11 pre 1.5?

Here is what I have working in everything but IE11.

doc.fromHTML($('#results').get(0), 10, 60, { 'width': 165, 'elementHandlers': specialElementHandlers }, function(a) { doc.save("Sample.pdf"); });

Any ideas, let me know.

SCRIPT5009: 'Promise' is undefined
jspdf.min.js (5220,9)

SCRIPT438: Object doesn't support property or method 'getStringUnitWidth'
jspdf.plugin.autotable.js (207,9)

are these issues fixed for IE 11 ? I tried going through previous issues but couldn't find any that could solve this. Kindly let me know asap, thanks!!

SCRIPT5009: 'Promise' is undefined
jspdf.min.js (5220,9)

SCRIPT438: Object doesn't support property or method 'getStringUnitWidth'
jspdf.plugin.autotable.js (207,9)

are these issues fixed for IE 11 ? I tried going through previous issues but couldn't find any that could solve this. Kindly let me know asap, thanks!!

Had the same issue, and it is all caused by IE11 not supporting Promise. I was able to fix it by adding promise.min.js. Make sure it loads before jspdf.min.js.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

arulmb0136 picture arulmb0136  ·  4Comments

mackersD picture mackersD  ·  4Comments

baluMallisetty picture baluMallisetty  ·  4Comments

BarathArivazhagan picture BarathArivazhagan  ·  4Comments

sayo96 picture sayo96  ·  3Comments