©
Ce document utilise Manuel du site Web PHP chinois Libérer
(PECL haru >= 0.0.1)
HaruPage::textRect — Print the text inside the specified region
$left
, float $top
, float $right
, float $bottom
, string $text
[, int $align
= HaruPage::TALIGN_LEFT
] )Prints the text inside the specified region.
left
Left border of the text area.
top
Top border of the text area.
right
Right border of the text area.
bottom
Lower border of the text area.
text
The text to print.
align
Text alignment. Must be one of the following values:
HaruPage::TALIGN_LEFT
HaruPage::TALIGN_RIGHT
HaruPage::TALIGN_CENTER
HaruPage::TALIGN_JUSTIFY
Returns TRUE
on success.
发生错误时抛出 HaruException 异常。