PHP Doku:: Create and return new HaruAnnotation instance - function.harupage-createurlannotation.html

Verlauf / Chronik / History: (1) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzNon-Text MIME-AusgabenHaru PDFThe HaruPage classHaruPage::createURLAnnotation

Ein Service von Reinhard Neidl - Webprogrammierung.

The HaruPage class

<<HaruPage::createTextAnnotation

HaruPage::curveTo2>>

HaruPage::createURLAnnotation

(PECL haru >= 0.0.1)

HaruPage::createURLAnnotationCreate and return new HaruAnnotation instance

Beschreibung

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

Creates a new HaruAnnotation instance.

Parameter-Liste

rectangle

An array with 4 coordinates of the clickable area.

url

The URL to open.

Rückgabewerte

Returns a new HaruAnnotation instance.

Fehler/Exceptions

Throws a HaruException on error.


Ein BenutzerBeitrag:
- Beiträge aktualisieren...
Kore
30.07.2009 10: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



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)