double pdf_stringwidth
The PDF_stringwidth() function returns the width of the string in text. It requires a font to be set before.
See also PDF_set_font().