N
N
Nekio2022-04-08 12:51:31
JavaScript
Nekio, 2022-04-08 12:51:31

How to make it read Cyrillic in JsPdf?

JsPdf does not read Cyrillic, tell me how to fix it

625004f106f40867484314.jpeg

<script src="lib/jspdf/jspdf.umd.js"></script>
<script src="lib/jspdf/jspdf.plugin.autotable.js"></script>

function table(){
     var doc = new jspdf.jsPDF();

     doc.autoTable({ html: '#table-list' })

     doc.save('table.pdf')
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2022-04-08
@Aleksandr-JS-Developer

Go ahead : https://stackoverflow.com/questions/21923488/how-t...
They offer text first to canvas, then canvas to png, and png already to pdf

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question