Answers for "jspdf text align center"

0

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
Posted by: Guest on December-01-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language