📅  最后修改于: 2022-03-11 15:02:24.600000             🧑  作者: Mango
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