tFPDF::Link PHP Метод

    function Link($x, $y, $w, $h, $link)
    {
        // Put a link on the page
        $this->PageLinks[$this->page][] = array($x * $this->k, $this->hPt - $y * $this->k, $w * $this->k, $h * $this->k, $link);
    }

Usage Example

Пример #1
0
 /**
  * Preserve adding Links in Templates ...won't work
  */
 function Link($x, $y, $w, $h, $link)
 {
     if (is_subclass_of($this, 'TCPDF')) {
         $args = func_get_args();
         return call_user_func_array(array($this, 'TCPDF::Link'), $args);
     }
     if ($this->_intpl) {
         $this->Error('Using links in templates aren\'t possible!');
     }
     parent::Link($x, $y, $w, $h, $link);
 }