简体   繁体   English

jspdf中没有得到期望的输出

[英]Not getting desired output in jspdf

CODE:


//This html is store in a div of someclass
<a>"i"
"f you think the perfect yo clone has not been build then there is ...."

i got the output like this!! 我得到这样的输出! 在此处输入图片说明

and my main code is here 我的主要代码在这里

var question_main  = document.getElementsByClassName("someclass");
question = $(question_main).html();
 var specialElementHandlers_main = {
                 '#test': function(element, renderer){
                  return true;
                                }
                                   };

      doc.fromHTML(question, 15, length, {
               'width': 175, 
               'elementHandlers': specialElementHandlers_main

                                  });

What wrong in that why i am getting some othere values(by) in py pdf? 为什么我在py pdf中得到一些其他值? How to solve it? 怎么解决呢? Is there any way so that i can remove the gap between "i" nd "f you.. .I think they are creating some problems? 有什么办法可以消除“我”“你们 之间的鸿沟我认为他们在制造一些问题?

这是因为jspdf不支持UTF-8字符don't to don't

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM