jsPDF icon indicating copy to clipboard operation
jsPDF copied to clipboard

downloading not working in IE 11

Open ankur2728 opened this issue 11 years ago • 28 comments

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

ankur2728 avatar Jun 09 '15 10:06 ankur2728

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

ankur2728 avatar Jun 16 '15 15:06 ankur2728

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?

adamaoc avatar Jul 08 '15 16:07 adamaoc

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.

dec avatar Jul 20 '15 12:07 dec

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

ggxt avatar Aug 27 '15 17:08 ggxt

text starts showing up after including html2canvas

vu-dang avatar Oct 23 '15 19:10 vu-dang

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 );

pietervos avatar Jan 05 '16 15:01 pietervos

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

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

FranzZemen avatar Mar 27 '16 03:03 FranzZemen

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

codeReadyy avatar Feb 15 '17 07:02 codeReadyy

@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.

adamaoc avatar Feb 15 '17 16:02 adamaoc

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

cwahlfeldt avatar Mar 08 '17 16:03 cwahlfeldt

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

codeReadyy avatar Mar 09 '17 11:03 codeReadyy

#425

Uzlopak avatar Mar 16 '17 15:03 Uzlopak

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

RikaLuo avatar Apr 05 '17 03:04 RikaLuo

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

codeReadyy avatar Apr 05 '17 09:04 codeReadyy

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

Uzlopak avatar Nov 03 '17 13:11 Uzlopak

Changing it from landscape to portrait-mode?

Uzlopak avatar Nov 03 '17 14:11 Uzlopak

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

BenjaminHoegh avatar Nov 05 '17 19:11 BenjaminHoegh

Duplicate of #697

Uzlopak avatar Feb 24 '18 20:02 Uzlopak

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

tschero avatar Jun 11 '19 15:06 tschero

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…

cedriccharles4 avatar Jun 12 '19 07:06 cedriccharles4