/**
  * Sets the line style
  *
  * @see Cpdf::setLineStyle()
  *
  * @param float  $width
  * @param string $cap
  * @param string $join
  * @param array  $dash
  */
 protected function _set_line_style($width, $cap, $join, $dash)
 {
     $this->_pdf->setLineStyle($width, $cap, $join, $dash);
 }
    return $newX;
}
//+----------------------------------------------------------------------+
//| DRAW NOTEPAPER BOX AND LINES
//+----------------------------------------------------------------------+
// Set the width of the section
$note_section_width = 320 - $left_margin;
// Set the height of the section
$note_section_height = $page_length - $bottom_margin;
// 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