javascript - jsPdf Android Stock browser error -


i'm developing script transforms html table in pdf document. use jspdf , jspdf-autotable. did testing on various brwser , works fine except android stock browser.

  android stock browser error :

resource interpreted document transferred mime type application/pdf: "data:application/pdf;base64,jvberi0xljmkmyawig9iago8pc9uexblic9qywdlci9qyxj…l6zsaxoqovum9vdcaxocawifikl0luzm8gmtcgmcbscj4+cnn0yxj0ehjlzgozmdk5ciulru9g".

jspdf code error jspdf.debug.js line 863

case 'dataurl': return global.document.location.href = datauri;

jspdf version: jspdf/1.0.272/jspdf.debug.js

what's wrong?

the "android stock browser error" warning don't have worry about. might old versions of android stock browser don't support datauri location href. try use save method instead pdf.

doc.save('table.pdf'); 

Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -