HaruPage::createTextAnnotation

(PECL haru >= 0.0.1)

HaruPage::createTextAnnotationCreate new HaruAnnotation instance

说明

HaruPage::createTextAnnotation ( array $rectangle , string $text [, object $encoder ] ) : object

Creates a new HaruAnnotation instance.

参数

rectangle

An array with 4 coordinates of the annotation area.

text

The text to be displayed.

encoder

Optional HaruEncoder instance.

返回值

Returns a new HaruAnnotation instance.

错误/异常

发生错误时抛出 HaruException 异常。

关注编程学问公众号