double cpdf_stringwidth
cpdf_stringwidth 関数は、 文字列 text の幅を返します。 フォントがあらかじめ設定されている必要があります。
cpdf_set_font も参照下さい。