Example #1
0
 /**
  * Sets the stroke colour
  *
  * See {@link Style::set_colour()} for the format of the color array.
  * @param array $color
  */
 protected function _set_stroke_color($color)
 {
     list($r, $g, $b) = $color;
     $this->_pdf->setStrokeColor($r, $g, $b);
 }
 /**
  * Sets the stroke color
  *
  * See {@link Style::set_color()} for the format of the color array.
  * @param array $color
  */
 protected function _set_stroke_color($color)
 {
     $this->_pdf->setStrokeColor($color);
 }
// Loop through and draw each line
$c = $bottom_margin;
if (isset($_GET['show_notes_lines']) && $_GET['show_notes_lines'] == "on") {
    while ($c < $note_section_height - 10) {
        // Set the line style
        if (isset($_GET['use_light_lines'])) {
            $pdf->setLineStyle(0.5);
        } else {
            $pdf->setLineStyle(1);
        }
        $pdf->line($left_margin, $c, $note_section_width, $c);
        $c = $c + $line_height;
    }
}
// Set the line color/style
$pdf->setStrokeColor(0, 0, 0);
if (isset($_GET['use_light_lines'])) {
    $pdf->setLineStyle(0.5);
} else {
    $pdf->setLineStyle(1);
}
// Draw the title
$note_title_left_margin = round($note_section_width / 2, 2);
$pdf->addText($note_title_left_margin, $note_section_height, 10, "Notes", 0, 0);
//+----------------------------------------------------------------------+
//| DRAW THE PAGE BOX
//+----------------------------------------------------------------------+
// Calculate page width using margins
$page_width = 580 - $left_margin;
$pdf->rectangle($left_margin, $bottom_margin, $page_width, 752);
// Page box