【问题标题】:Not getting desired output in jspdf在jspdf中没有得到想要的输出
【发布时间】:2014-07-31 00:57:28
【问题描述】:
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 ...."

我得到了这样的输出!!

我的主要代码在这里

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

                                  });

为什么我在 py pdf 中得到一些其他值(按)有什么问题?如何解决? 有什么办法可以消除 "i""f you.. 之间的差距。我认为他们正在制造一些问题?

【问题讨论】:

  • 您能否制作一个 PlunkFiddle 来准确说明问题?目前还不清楚您的代码是什么,以及为什么它不起作用。
  • Fiddle 如您所见,文本有些损坏

标签: javascript jquery html jspdf


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-04-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多