| @@ 729-731 (lines=3) @@ | ||
| 726 | $y4 = $y + $h; |
|
| 727 | ||
| 728 | // get the Closing operator from the PDF Style |
|
| 729 | if ($style == 'F') $op = 'f'; |
|
| 730 | elseif ($style == 'FD' || $style == 'DF') $op = 'B'; |
|
| 731 | else $op = 'S'; |
|
| 732 | ||
| 733 | // drawing |
|
| 734 | $this->_Point($x1, $y1, true); |
|
| @@ 775-777 (lines=3) @@ | ||
| 772 | public function svgEllipse($x0, $y0, $rx, $ry, $style) |
|
| 773 | { |
|
| 774 | // get the Closing operator from the PDF Style |
|
| 775 | if ($style == 'F') $op = 'f'; |
|
| 776 | elseif ($style == 'FD' || $style == 'DF') $op = 'B'; |
|
| 777 | else $op = 'S'; |
|
| 778 | ||
| 779 | // drawing |
|
| 780 | $this->_Arc($x0, $y0, $rx, $ry, 0, 2 * M_PI, true, true, true); |
|
| @@ 794-796 (lines=3) @@ | ||
| 791 | public function svgPolygone($actions, $style) |
|
| 792 | { |
|
| 793 | // get the Closing operator from the PDF Style |
|
| 794 | if ($style == 'F') $op = 'f'; |
|
| 795 | elseif ($style == 'FD' || $style == 'DF') $op = 'B'; |
|
| 796 | else $op = 'S'; |
|
| 797 | ||
| 798 | // To save the First action and the last point |
|
| 799 | $first = array('', 0, 0); |
|
| @@ 488-493 (lines=6) @@ | ||
| 485 | function Rect($x, $y, $w, $h, $style='') |
|
| 486 | {
|
|
| 487 | // Draw a rectangle |
|
| 488 | if($style=='F') { |
|
| 489 | $op = 'f'; |
|
| 490 | } elseif($style=='FD' || $style=='DF') { |
|
| 491 | $op = 'B'; |
|
| 492 | } else { |
|
| 493 | $op = 'S'; |
|
| 494 | } |
|
| 495 | $this->_out(sprintf('%.2F %.2F %.2F %.2F re %s',$x*$this->k,($this->h-$y)*$this->k,$w*$this->k,-$h*$this->k,$op));
|
|
| 496 | } |
|