Exemplo n.º 1
0
 /**
  * Set destination of internal link
  *
  * @param  $link
  * @param  int $y
  * @param  $page
  * @return $this
  */
 public function setLink($link, $y = 0, $page = -1)
 {
     if ($y == -1) {
         $y = $this->_y;
     }
     if ($page == -1) {
         $page = $this->_pdfDocument->getCurPageNo();
     }
     $this->_pdfDocument->internalLinks[$link] = array($page, $y);
     return $this;
 }