📜  jspdf 文本居中对齐 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:24.600000             🧑  作者: Mango

代码示例1
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