PDF_skew
PDF_stroke
PDF Functions
PHP Manual

# PDF_stringwidth

(PHP 4, PECL pdflib >= 1.0.0)

PDF_stringwidth — Returns width of text using current font

### Description

double pdf_stringwidth ( int `$pdf document` , string `$text` )

The PDF_stringwidth() function returns the width of the string in `text` by using the current font. It requires a font to be set before with PDF_set_font().

See also PDF_set_font().

PDF_skew
PDF_stroke
PDF Functions
PHP Manual