function rectangle($x1, $y1, $w, $h, $color, $width, $style = array(), $blend = "Normal", $opacity = 1.0) { $this->_set_stroke_color($color); $this->_set_line_style($width, "square", "miter", $style); $this->_set_line_transparency($blend, $opacity); $this->_pdf->rectangle($x1, $this->y($y1) - $h, $w, $h); }
function rectangle($x1, $y1, $w, $h, $color, $width, $style = array()) { $this->_set_stroke_color($color); $this->_set_line_style($width, "butt", "", $style); $this->_pdf->rectangle($x1, $this->y($y1) - $h, $w, $h); }
// 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 //+----------------------------------------------------------------------+ //| DRAW THE ACTION ITEMS BOX //+----------------------------------------------------------------------+ // Calculate the width using margins $action_width = 230; // Draw the rectangle $pdf->rectangle($note_section_width, $bottom_margin, $action_width, 752); // Action items section box // Loop through and draw each line $c = $bottom_margin; if (isset($_GET['show_actions_lines']) && $_GET['show_actions_lines'] == "on") { while ($c < $note_section_height - 10) { // Set the line style if (isset($_GET['use_light_lines'])) {
#$pdf->setPreferences( "CenterWindow",true); #$pdf->setPreferences( "NonFullScreenPageMode",True); // UseNone, UseOutlines, UseThumbs $unten = 50; $links = 20; $oben = 820; $pdf->addText($links, $oben, 11, 'links oben'); $pdf->addText($links, $unten, 11, 'links unten'); $pdf->addText(500, $oben, 11, 'rechts oben'); $pdf->addText(500, $unten, 11, 'rechts unten'); $row = $oben; for ($i = 1; $i <= 10; $i++) { $row = $row - 10; $pdf->addText($links, $row, 11, $i . ' drunter'); } $pdf->addJpegFromFile($pathvars["fileroot"] . "/images/net/vdmvd/otto.jpg", 70.86, 420.94, 100); $pdf->rectangle($links, $unten, 540, 780); /* $pdf->newPage(); $pdf->addText(0,830,'10pt','links oben'); $pdf->addText(540,830,10,'rechts oben'); $pdf->addText(0,5,10,'links unten'); $pdf->addText(540,5,10,'rechts unten'); */ $pdf->stream(); } else { include_once $pathvars["libraries"] . "xtra.pdf.php"; include_once $pathvars["libraries"] . "xtra.ezpdf.php"; $pdf = new Cezpdf(); $pdf->selectFont('./fonts/Helvetica.afm'); $pdf->openHere("Fit"); // Image