目前 jspdf 方法仅显示内容和图像,但如何包含单选按钮图标。
var doc = new jsPDF();
var specialElementHandlers = {
'#editor': function (element, renderer) {
return true;
}
};
$('#cmd').click(function () {
doc.fromHTML($('#content').html(), 15, 15, {
'width': 170,
'elementHandlers': specialElementHandlers
});
doc.save('sample-file.pdf');
});
<div id="content">
<input type="radio">CT Scan
</div>
<div id="editor"></div>
<button id="cmd">generate PDF</button>
我想在 pdf 中包含单选和复选框图标。
最佳答案
关于javascript - 使用单选按钮和复选框从 HTML 生成 PDF,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52165222/