Beispiel #1
0
 /**
  * tag : A
  * mode : OPEN
  *
  * @param  array $param
  * @return boolean
  */
 protected function _tag_open_A($param)
 {
     $this->_isInLink = str_replace('&', '&', isset($param['href']) ? $param['href'] : '');
     if (isset($param['name'])) {
         $name = $param['name'];
         if (!isset($this->_lstAnchor[$name])) {
             $this->_lstAnchor[$name] = array($this->pdf->AddLink(), false);
         }
         if (!$this->_lstAnchor[$name][1]) {
             $this->_lstAnchor[$name][1] = true;
             $this->pdf->SetLink($this->_lstAnchor[$name][0], -1, -1);
         }
     }
     if (preg_match('/^#([^#]+)$/isU', $this->_isInLink, $match)) {
         $name = $match[1];
         if (!isset($this->_lstAnchor[$name])) {
             $this->_lstAnchor[$name] = array($this->pdf->AddLink(), false);
         }
         $this->_isInLink = $this->_lstAnchor[$name][0];
     }
     $this->parsingCss->save();
     $this->parsingCss->value['font-underline'] = true;
     $this->parsingCss->value['color'] = array(20, 20, 250);
     $this->parsingCss->analyse('a', $param);
     $this->parsingCss->setPosition();
     $this->parsingCss->fontSet();
     return true;
 }