jsPDF-AutoTable
jsPDF-AutoTable copied to clipboard
jsPDF-AutoTable not support utf8 in Vietnamese country?
I use version
"jspdf": "^2.5.1",
"jspdf-autotable": "^3.5.25",
Codes:
filePDF.autoTable({
body: [
[
{
content: 'PHIẾU GIAO XUẤT KHO GIAO HÀNG',
styles: {
halign: 'center',
fontStyle: 'bold',
},
},
],
],
theme: 'plain',
styles: {
font: 'times',
},
});
Resutls:

You likely need to add a new font to jspdf supporting the characters you want. See en example in the custom styles example.
@simonbengtsson Thank you, I add font and it worked
This issue will soon be closed since issues in this project are mainly meant to be bugs or feature requests. Questions are directed to stackoverflow.