我正在使用 jsPDF 1.2.60 和 jsPDF AutoTable 2.0.32 插件来生成一个 PDF,其中包含一个包含 colspans 和 rowspans 以及图像(数据 URI)的表格。它在 Chrome 和 Firefox 中运行没有问题,但我无法让它在 IE10 和 IE11 中运行。
我尝试使用 jsPDF 1.0.272,因为我读到它应该在 IE<=9 中工作,因此可能在 IE10 和 IE11 中但它没有,我不断收到错误:'jsPDF object undefined' 类似于我使用的错误最新版本的jsPDF
我包括以下脚本:
<script type="text/javascript" src="/Scripts/jsPDF-1.2.60/examples/js/jquery/jquery-ui-1.8.17.custom.min.js"></script>
<script type="text/javascript" src="/Scripts/jsPDF-1.2.60/dist/jspdf.min.js"></script>
<script type="text/javascript" src="/Scripts/jsPDF-1.2.60/plugins/split_text_to_size.js"></script>
<script type="text/javascript" src="/Scripts/jsPDF-1.2.60/plugins/standard_fonts_metrics.js"></script>
<script type="text/javascript" src="/Scripts/jsPDF-1.2.60/libs/css_colors.js"></script>
<script type="text/javascript" src="/Scripts/jsPDF-1.2.60/libs/deflate.js"></script>
<script type="text/javascript" src="/Scripts/jsPDF-1.2.60/libs/html2pdf.js"></script>
<script type="text/javascript" src="/Scripts/jsPDF-1.2.60/libs/polyfill.js"></script>
<script type="text/javascript" src="/Scripts/jsPDF-AutoTable-2.0.32/dist/jspdf.plugin.autotable.js"></script>
<script type="text/javascript" src="/Scripts/jquery.tableparser-master/jquery.tableparser-min.js"></script>
有没有人在 IE 中成功使用过这个库?
谢谢,米哈埃拉