algn-text center in jspdf code example
Example: jspdf text align center
const doc = new jsPDF();
doc.text(100, 20, 'Hello World', 'center');
// Default is 'left', so either use 'center' or 'right'
// You will need to use an increased left-offset
// Documentation says you need to add an argument for the text angle before the alignment, but it works regardless