首先,如果页面中有资源文件,需要使用的路径问题,必须使用全路径,http://xxxxx。
其次,在导出pdf中,发现使用hightchart图表中,如果有中文,会进行unicode编码。
如下图所示:
所以必须在渲染之前对unicode码进行转换,换成中文即可
得到数据之后进行转换
1 for (var i = 0; i
转换函数:
1 function Unicode2Native(origCode) { 2 var code = origCode.match(/(\d+);/g); 3 if (code == null) { 4 return origCode; 5 } 6 var result = ""; 7 for (var i = 0; i
查看更多关于Rotativa转换html为pdf时遇到的问题_html/css_WEB-ITnose的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did109908