/** * Add an internal link * * Add an internal link to the rectangle specified by its top-left * position, width and height. The last parameter is the target identifier * to link to. * * @param float $x * @param float $y * @param float $width * @param float $height * @param string $target * @return void */ public function addInternalLink($x, $y, $width, $height, $target) { $this->document->link($x, $y, $width, $height, $link = $this->document->addLink()); if (!isset($this->internalLinkSources[$target])) { $this->internalLinkSources[$target] = array($link); } else { $this->internalLinkSources[$target][] = $link; } }