Exemple #1
0
 /**
  * tag : ELLIPSE
  * mode : OPEN
  *
  * @param  array $param
  * @return boolean
  */
 protected function _tag_open_ELLIPSE($param)
 {
     if (!$this->_isInDraw) {
         $e = new HtmlParsingException('The asked [ELLIPSE] tag is not in a [DRAW] tag');
         $e->setInvalidTag('ELLIPSE');
         throw $e;
     }
     $this->pdf->doTransform(isset($param['transform']) ? $this->_prepareTransform($param['transform']) : null);
     $this->parsingCss->save();
     $styles = $this->parsingCss->getSvgStyle('path', $param);
     $style = $this->pdf->svgSetStyle($styles);
     $cx = isset($param['cx']) ? $this->parsingCss->ConvertToMM($param['cx'], $this->_isInDraw['w']) : 0.0;
     $cy = isset($param['cy']) ? $this->parsingCss->ConvertToMM($param['cy'], $this->_isInDraw['h']) : 0.0;
     $rx = isset($param['ry']) ? $this->parsingCss->ConvertToMM($param['rx'], $this->_isInDraw['w']) : 0.0;
     $ry = isset($param['rx']) ? $this->parsingCss->ConvertToMM($param['ry'], $this->_isInDraw['h']) : 0.0;
     $this->pdf->svgEllipse($cx, $cy, $rx, $ry, $style);
     $this->pdf->undoTransform();
     $this->parsingCss->load();
 }