HaruPage::textRect

(PECL haru >= 0.0.1)
Print the text inside the specified region
bool HaruPage::textRect ( float $left, float $top, float $right, float $bottom, string $text [, int $align = HaruPage::TALIGN_LEFT ] )

Prints the text inside the specified region.

Parameters:
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:

Returns TRUE on success.

Exception:

Throws a HaruException on error.

See also:

HaruPage::showTextNextLine() -

HaruPage::showText() -

HaruPage::textOut() -

doc_php
2016-02-24 16:03:29
Comments
Leave a Comment

Please login to continue.