|
@@ 6241-6259 (lines=19) @@
|
| 6238 |
|
* @param array $param |
| 6239 |
|
* @return boolean|null |
| 6240 |
|
*/ |
| 6241 |
|
protected function _tag_open_LINE($param) |
| 6242 |
|
{ |
| 6243 |
|
if ( ! $this->_isInDraw) throw new HTML2PDF_exception(8, 'LINE'); |
| 6244 |
|
|
| 6245 |
|
$this->pdf->doTransform(isset($param['transform']) ? $this->_prepareTransform($param['transform']) : null); |
| 6246 |
|
$this->parsingCss->save(); |
| 6247 |
|
$styles = $this->parsingCss->getSvgStyle('path', $param); |
| 6248 |
|
$styles['fill'] = null; |
| 6249 |
|
$style = $this->pdf->svgSetStyle($styles); |
| 6250 |
|
|
| 6251 |
|
$x1 = isset($param['x1']) ? $this->parsingCss->ConvertToMM($param['x1'], $this->_isInDraw['w']) : 0.; |
| 6252 |
|
$y1 = isset($param['y1']) ? $this->parsingCss->ConvertToMM($param['y1'], $this->_isInDraw['h']) : 0.; |
| 6253 |
|
$x2 = isset($param['x2']) ? $this->parsingCss->ConvertToMM($param['x2'], $this->_isInDraw['w']) : 0.; |
| 6254 |
|
$y2 = isset($param['y2']) ? $this->parsingCss->ConvertToMM($param['y2'], $this->_isInDraw['h']) : 0.; |
| 6255 |
|
$this->pdf->svgLine($x1, $y1, $x2, $y2); |
| 6256 |
|
|
| 6257 |
|
$this->pdf->undoTransform(); |
| 6258 |
|
$this->parsingCss->load(); |
| 6259 |
|
} |
| 6260 |
|
|
| 6261 |
|
/** |
| 6262 |
|
* tag : RECT |
|
@@ 6268-6286 (lines=19) @@
|
| 6265 |
|
* @param array $param |
| 6266 |
|
* @return boolean|null |
| 6267 |
|
*/ |
| 6268 |
|
protected function _tag_open_RECT($param) |
| 6269 |
|
{ |
| 6270 |
|
if ( ! $this->_isInDraw) throw new HTML2PDF_exception(8, 'RECT'); |
| 6271 |
|
|
| 6272 |
|
$this->pdf->doTransform(isset($param['transform']) ? $this->_prepareTransform($param['transform']) : null); |
| 6273 |
|
$this->parsingCss->save(); |
| 6274 |
|
$styles = $this->parsingCss->getSvgStyle('path', $param); |
| 6275 |
|
$style = $this->pdf->svgSetStyle($styles); |
| 6276 |
|
|
| 6277 |
|
$x = isset($param['x']) ? $this->parsingCss->ConvertToMM($param['x'], $this->_isInDraw['w']) : 0.; |
| 6278 |
|
$y = isset($param['y']) ? $this->parsingCss->ConvertToMM($param['y'], $this->_isInDraw['h']) : 0.; |
| 6279 |
|
$w = isset($param['w']) ? $this->parsingCss->ConvertToMM($param['w'], $this->_isInDraw['w']) : 0.; |
| 6280 |
|
$h = isset($param['h']) ? $this->parsingCss->ConvertToMM($param['h'], $this->_isInDraw['h']) : 0.; |
| 6281 |
|
|
| 6282 |
|
$this->pdf->svgRect($x, $y, $w, $h, $style); |
| 6283 |
|
|
| 6284 |
|
$this->pdf->undoTransform(); |
| 6285 |
|
$this->parsingCss->load(); |
| 6286 |
|
} |
| 6287 |
|
|
| 6288 |
|
/** |
| 6289 |
|
* tag : CIRCLE |
|
@@ 6320-6337 (lines=18) @@
|
| 6317 |
|
* @param array $param |
| 6318 |
|
* @return boolean|null |
| 6319 |
|
*/ |
| 6320 |
|
protected function _tag_open_ELLIPSE($param) |
| 6321 |
|
{ |
| 6322 |
|
if ( ! $this->_isInDraw) throw new HTML2PDF_exception(8, 'ELLIPSE'); |
| 6323 |
|
|
| 6324 |
|
$this->pdf->doTransform(isset($param['transform']) ? $this->_prepareTransform($param['transform']) : null); |
| 6325 |
|
$this->parsingCss->save(); |
| 6326 |
|
$styles = $this->parsingCss->getSvgStyle('path', $param); |
| 6327 |
|
$style = $this->pdf->svgSetStyle($styles); |
| 6328 |
|
|
| 6329 |
|
$cx = isset($param['cx']) ? $this->parsingCss->ConvertToMM($param['cx'], $this->_isInDraw['w']) : 0.; |
| 6330 |
|
$cy = isset($param['cy']) ? $this->parsingCss->ConvertToMM($param['cy'], $this->_isInDraw['h']) : 0.; |
| 6331 |
|
$rx = isset($param['ry']) ? $this->parsingCss->ConvertToMM($param['rx'], $this->_isInDraw['w']) : 0.; |
| 6332 |
|
$ry = isset($param['rx']) ? $this->parsingCss->ConvertToMM($param['ry'], $this->_isInDraw['h']) : 0.; |
| 6333 |
|
$this->pdf->svgEllipse($cx, $cy, $rx, $ry, $style); |
| 6334 |
|
|
| 6335 |
|
$this->pdf->undoTransform(); |
| 6336 |
|
$this->parsingCss->load(); |
| 6337 |
|
} |
| 6338 |
|
|
| 6339 |
|
|
| 6340 |
|
/** |