downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

HaruPage::curveTo2> <HaruPage::createTextAnnotation
Last updated: Fri, 11 Dec 2009

view this page in

HaruPage::createURLAnnotation

(PECL haru >= 0.0.1)

HaruPage::createURLAnnotationCreate and return new HaruAnnotation instance

Description

object HaruPage::createURLAnnotation ( array $rectangle , string $url )

Creates a new HaruAnnotation instance.

Parameters

rectangle

An array with 4 coordinates of the clickable area.

url

The URL to open.

Return Values

Returns a new HaruAnnotation instance.

Errors/Exceptions

Throws a HaruException on error.



add a note add a note User Contributed Notes
HaruPage::createURLAnnotation
Kore
30-Jul-2009 08:01
Like shown in the source code [1] the array defining the rectangle should look like:

<?php
$rect
= array(
   
$bottomLeftXCoordinate,
   
$bottomLeftYCoordinate,
   
$topRightXCoordinate,
   
$topRightYCoordinate,
);
?>

As always these values have to be given in "pt" (point, 72dpi).

[1] http://cvs.php.net/viewvc.cgi/pecl/haru/haru.c?view=markup#l701

HaruPage::curveTo2> <HaruPage::createTextAnnotation
Last updated: Fri, 11 Dec 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites