[英]jsPDF not working for IE 7/8 as well as Firefox 13?
I am trying out the sample code for jsPDF for IE7/8 and Firefox 13. In IE it displays a script error stating 我正在为IE7 / 8和Firefox 13尝试jsPDF的示例代码。在IE中它显示一个脚本错误说明
the data area passed to a system call is too small jsPdf.js
On the other hand I dont see an error on Firefox's console. 另一方面,我没有在Firefox的控制台上看到错误。 I tried it out in Chrome and it works great.
我在Chrome中尝试过,效果很好。 I searched through but in most of the places the replies I got was or I must say what I came across is that it works fine with all the browsers.
我搜索过,但在大多数地方我收到的回复是,或者我必须说我遇到的是它适用于所有浏览器。 But in my case even the sample application is not working.
但就我而言,即使示例应用程序也无法运行。 Please help.
请帮忙。
I had the same problem. 我有同样的问题。
With Chrome the generation of the new pdf page worked great, while in Firefox it stopped and could not be completed. 使用Chrome,新版pdf页面的生成效果非常好,而在Firefox中则停止了,无法完成。
I solved so: 我这样解决了:
open the jspdf.js file and go at line 1698, there you find this 打开jspdf.js文件并转到第1698行,在那里你找到了这个
if ($.browser.webkit) {
return API.output('dataurlnewwindow');
}
and substitute it with 并用它代替
if ($.browser.webkit) {
return API.output('dataurlnewwindow');
}
else {
return API.output('dataurl');
}
in this way the switch statement that follows will find the right case to compile the URL in a working way for firefox 通过这种方式,下面的switch语句将找到以火狐的工作方式编译URL的正确案例
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.