cpdf_stringwidth

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

説明

double cpdf_stringwidth(int pdf document, string text);

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

cpdf_set_font も参照下さい。