(PHP3 >= 3.0.8, PHP4 >= 4.0b4)
double cpdf_stringwidth (int pdf document, string text)
double cpdf_stringwidth
The cpdf_stringwidth() function returns the width of the string in text. It requires a font to be set before.
See also cpdf_set_font().