cpdf_stringwidth

(PHP 3>= 3.0.8, PHP 4 >= 4.0.0)

cpdf_stringwidth -- カレントフォントのテキストの幅を返す

説明

double cpdf_stringwidth (int pdf document, string text)

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

cpdf_set_font() も参照下さい。