您的位置:寻梦网首页编程乐园PHP 编程PHP5中文手册
PHP5中文手册

cpdf_stringwidth

(PHP 4, PHP 5 <= 5.0.5)

cpdf_stringwidth — Returns width of text in current font

说明

float cpdf_stringwidth ( int $pdf_document , string $text )

Returns the width of the string in text .

This function requires a font to be set before.

参数

pdf_document

The document handle, returned by cpdf_open().

text

The text, as a string

返回值

Returns the width of text .