Forum und email
cpdf_stringwidth

cpdf_stringwidth

(PHP 3 >= 3.0.8, PHP 4, PHP 5 <= 5.0.4)

cpdf_stringwidth -- Returns width of text in current font

Popis

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.

Seznam parametrů

pdf_document

The document handle, returned by cpdf_open().

text

The text, as a string

Návratové hodnoty

Returns the width of text.

Viz také

cpdf_set_font()