La función cpdf_stringwidth( ) devuelve la anchura de la cadena text . Requiere haber definido antes una fuente .
Vea también cpdf_set_font( ) .