Navigators compatibilities
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
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 ?
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?
As for downloads on Safari, see #196
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)
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.
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.
throrin19, you can make work for IE9 ?
Due to ie9 limitation, it's not possible to make jspdf work for ie9
I have the same problem, any tip ?
throrin19, you could find any way to make it work?
Sorry, I have no time for that