showing results for - "jspdf text align center"
Alexandria
05 Oct 2019
1const doc = new jsPDF();
2doc.text(100, 20, 'Hello World', 'center');
3// Default is 'left', so either use 'center' or 'right'
4// You will need to use an increased left-offset
5// Documentation says you need to add an argument for the text angle before the alignment, but it works regardless