public function ellipse($x, $y, $radiusX, $radiusY, $rotation, $startAngle, $endAngle, $anticlockwise) { if (self::DEBUG) { echo __FUNCTION__ . "\n"; } $this->canvas->ellipse($x, $y, $radiusX, $radiusY, 0, 8, 0, 360, false, false, false, false); }
function circle($x, $y, $r1, $color, $width = null, $style = null, $fill = false) { $this->_set_fill_color($color); $this->_set_stroke_color($color); if (!$fill && isset($width)) { $this->_set_line_style($width, "round", "round", $style); } $this->_pdf->ellipse($x, $this->y($y), $r1, 0, 0, 8, 0, 360, 1, $fill); }
function circle($x, $y, $r1, $color, $width = null, $style = null, $fill = false, $blend = "Normal", $opacity = 1.0) { $this->_set_fill_color($color); $this->_set_stroke_color($color); $this->_set_line_transparency($blend, $opacity); $this->_set_fill_transparency($blend, $opacity); if (!$fill && isset($width)) { $this->_set_line_style($width, "round", "round", $style); } $this->_pdf->ellipse($x, $this->y($y), $r1, 0, 0, 8, 0, 360, 1, $fill); }
$page_length = 792; // Length of page $page_width = 612; // Length of page $bottom_margin = 30; $left_margin = 20; $right_margin = 20; $line_height = strip_tags($_GET['line_height']); // line height //+----------------------------------------------------------------------+ //| CREATE PUNCH HOLES AND ADJUST LEFT MARGIN //+----------------------------------------------------------------------+ if (isset($_GET['show_punch_holes'])) { if ($_GET['show_punch_holes'] == "on") { $left_margin = 40; $pdf->ellipse(20, 750, 10); $pdf->ellipse(20, 410, 10); $pdf->ellipse(20, 75, 10); } } //+----------------------------------------------------------------------+ //| CALCULATE POSITIONS //+----------------------------------------------------------------------+ function getXfromRightMargin($myString, $mySize) { global $pdf, $page_width, $left_margin; $newX = $page_width + $left_margin - $pdf->getTextWidth($mySize, $myString); return $newX; } //+----------------------------------------------------------------------+ //| DRAW NOTEPAPER BOX AND LINES