jsPDF
jsPDF copied to clipboard
addhtml in arabic not work
I want to export html as pdf. When I use doc.text("سلام!", 10, 10 ,options); everything is Ok. by when use var options = { pagesplit: true,'background': '#fff' ,lang: 'ar'};
doc.addHTML(document.getElementById('customers')[0], options, function() {
doc.output('dataurlnewwindow');
}); pdf is not ok. this is jsfiddle.
what I see:
what I expected
addHTML is deprecated.
what should I use instead? html2canvas? I don't want to get image in pdf. I want to be able to select on it.