parallax / jsPDF

Client-side JavaScript PDF generation for everyone.

Home Page:https://parall.ax/products/jspdf

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

charSpace affects centering, how can I solve it?

Lazydd opened this issue · comments

image

const left = doc.internal.pageSize.width / 2;
const top = doc.internal.pageSize.height / 2;
doc.text('hello world', left, top, { align: 'center', charSpace: 5 });

image

doc.text('hello world', left, top, { align: 'center' });