jsPDF icon indicating copy to clipboard operation
jsPDF copied to clipboard

Navigators compatibilities

Open throrin19 opened this issue 12 years ago • 11 comments

Hi, your library is awersome but after chrome development, i've test that on differents navigators :

  • Firefox
  • Chrome Android
  • Safari on OSX 10.9.2
  • IE9
  • Samsung android navigator on android 4.1

And your library does not works on this navigators :

  • Safari on OSX 10.9.2
  • IE9
  • Samsung android navigator on android 4.1

Samsung android navigator on android 4.1

In this navigator, i get this error in javascript console if i try to generate and download pdf :

Uncaught ReferenceError: Uint8ClampedArray is not defined 

I found the shim of this function here. The error disapear but it's impossible to download the file.

Safari on OSX 10.9.2

I've got an error if i try to addImage on PDF

[Error] ReferenceError: Can't find variable: info
    processPNG (jspdf.min.js, line 167)
    addImage (jspdf.min.js, line 166)
    (fonction anonyme) (pdf.js, line 50)
    (fonction anonyme)
    success (dataHelper.js, line 100)
    fire (jquery.js, line 3063)
    fireWith (jquery.js, line 3175)
    done (jquery.js, line 8235)
    (fonction anonyme) (jquery.js, line 8582)

IE9

I've got this error :

SCRIPT5009: « Uint32Array » est indéfini 
jspdf.min.js, Ligne 168 Caractère 26123
SCRIPT5009: « Uint32Array » est indéfini 
jspdf.min.js, Ligne 168 Caractère 26123
SCRIPT5009: « atob » est indéfini 
jspdf.min.js, Ligne 166 Caractère 19412

Thanks

throrin19 avatar Apr 22 '14 14:04 throrin19

Edit : For safari, it's the image plugin. If i comment my image code, i've no error but the file no download. It's normal ?

throrin19 avatar Apr 22 '14 15:04 throrin19

Apparently the PNG plugin requires an ArrayBuffer, otherwise it throws on info because if isn't defined (looks like that function isn't complete)

I'll try to fix that, as for unavailable Uint8ClampedArray. Can you show us your image code, btw?

diegocr avatar Apr 25 '14 17:04 diegocr

As for downloads on Safari, see #196

diegocr avatar Apr 25 '14 17:04 diegocr

I send the image base64 code on Monday but, on safari, ie and android navigator, the pdf generation does not works. I have no download and error on the typedarrays (they are undefined in core navigator javascript engine)

throrin19 avatar Apr 26 '14 20:04 throrin19

I see, taking a closer look at the addImage plugin i can see it was modified at the time of the PNG support to handle the data as ArrayBuffers by default, breaking existing code there since Uint8Array is unavailable, as you correctly pointed.

diegocr avatar Apr 26 '14 22:04 diegocr

Feel free to try out 1.0.116

You should note however, there are know issues downloading under Safari and IE, under Android it should no longer complain about TypedArrays, being the data handled as binary string.

diegocr avatar Apr 26 '14 23:04 diegocr

throrin19, you can make work for IE9 ?

sergiobertolazo avatar Mar 28 '16 11:03 sergiobertolazo

Due to ie9 limitation, it's not possible to make jspdf work for ie9

throrin19 avatar Mar 28 '16 11:03 throrin19

I have the same problem, any tip ?

gabrielrtakeda avatar Mar 28 '16 20:03 gabrielrtakeda

throrin19, you could find any way to make it work?

sergiobertolazo avatar Mar 29 '16 16:03 sergiobertolazo

Sorry, I have no time for that

throrin19 avatar Mar 31 '16 08:03 throrin19