📜  pdf 到 html js - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:21.550000             🧑  作者: Mango

代码示例2
var doc = new jsPDF();          
var elementHandler = {
  '#ignorePDF': function (element, renderer) {
    return true;
  }
};
var source = window.document.getElementsByTagName("body")[0];
doc.fromHTML(
    source,
    15,
    15,
    {
      'width': 180,'elementHandlers': elementHandler
    });

doc.output("dataurlnewwindow");