Cpdf::getTextWidth
calculate how wide a given text string will be on a page, at a given size.
this can be called externally, but is also used by the other class functions
Signature
public function getTextWidth(
$size,
$text,
[integer
$word_spacing = 0,
[integer
$char_spacing = 0]] )
Parameters
$size
—$text
—$word_spacing
— integer$char_spacing
— integer
Returns
- float|int