pdf_stringwidth

(PHP 3>= 3.0.6, PHP 4 )

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

説明

double pdf_stringwidth (int pdf document, string text)

pdf_stringwidth() 関数は、カレントのフォントを 用いた場合のtext の文字列の幅を返します。 事前にpdf_set_font()でフォントを設定しておく必 要があります。

pdf_set_font() も参照下さい。