I need to get the size in pixels of a given string to properly center a text in a PDF generated with PDF-Lib. I've found some npm packages that can do the job, but does it exists some way to achieve with pure JS?
Asked
Active
Viewed 66 times