<?php //define the Paragraph String ~~ Required by Multicell Class define('PARAGRAPH_STRING', '~~~'); //Tag Based Multicell Class require_once "class.multicelltag.php"; //Class Extention for header and footer require_once "header_footer.inc"; $pdf = new pdf_usage(); $pdf->Open(); $pdf->SetMargins(20, 20, 20); $pdf->AddPage(); $pdf->AliasNbPages(); $pdf->SetFont('arial', '', 11); $pdf->SetTextColor(200, 10, 10); $pdf->SetFillColor(254, 255, 245); $pdf->SetStyle("p", "times", "", 11, "130,0,30"); $pdf->SetStyle("pb", "times", "B", 11, "130,0,30"); $pdf->SetStyle("t1", "arial", "", 11, "80,80,260"); $pdf->SetStyle("t3", "times", "B", 14, "203,0,48"); $pdf->SetStyle("t4", "arial", "BI", 11, "0,151,200"); $pdf->SetStyle("hh", "times", "B", 11, "255,189,12"); $pdf->SetStyle("ss", "arial", "", 7, "203,0,48"); $pdf->SetStyle("font", "helvetica", "", 10, "0,0,255"); $pdf->SetStyle("style", "helvetica", "BI", 10, "0,0,220"); $pdf->SetStyle("size", "times", "BI", 13, "0,0,120"); $pdf->SetStyle("color", "times", "BI", 13, "0,255,255"); $txt1 = "Created by <t1 href='mailto:andy@interpid.eu'>Bintintan Andrei, Interpid Team</t1>"; $txt2 = "<p><t3>Description</t3>\r\n\r\n\tThis method allows printing of <t4><TAG></t4> formatted text with line breaks. They can be automatic (as soon as the text reaches the right border of the cell) or explicit (via the <pb>\\n</pb> character).</p>\r\n\r\n<t3>Features:</t3>\r\n<p>\t- Text can be <hh>aligned</hh>, <hh>cente~~~red</hh> or <hh>justified</hh>\r\n\t- Different <font>Font</font>, <size>Sizes</size>, <style>Styles</style>, <color>Colors</color> can be used \r\n\t- The cell block can be framed and the background painted\r\n\t- <style href='www.fpdf.org'>Links</style> can be used in any tag\r\n\t- <t4>TAB</t4> spaces (<pb>\\t</pb>) can be used\r\n\t- Variable Y relative positions can be used for <ss ypos='-0.8'>Subscript</ss> or <ss ypos='1.1'>Superscript</ss>\r\n\t- Cell padding (left, right, top, bottom)\r\n\t- Controlled Tag Sizes can be used</p>\r\n\r\n\t<size size='50' >Paragraph Example:~~~</size><font> - Paragraph 1</font>\r\n\t<p size='60' > ~~~</p><font> - Paragraph 2</font>\r\n\t<p size='60' > ~~~</p> - Paragraph 2\r\n\t<p size='70' >Sample text~~~</p><p> - Paragraph 3</p>\r\n\t<p size='50' >Sample text~~~</p> - Paragraph 1\r\n\t<p size='60' > ~~~</p><t4> - Paragraph 2</t4>\r\n\r\n<t3>Observations:</t3>\r\n<p>\r\n\t- If no <t4><TAG></t4> is specified then the FPDF current settings(font, style, size, color) are used\r\n\t- The <t4>ttags</t4> tag name is reserved for the TAB SPACES\r\n</p>"; $pdf->MultiCellTag(150, 5, $txt1, 1, "L", 1, 5, 5, 5, 5); $pdf->Ln(10);
$pdf->Cell(80, 3, 'Av. BolĂvar C.C. Amelia Piso 3 Ofic. 306', 0, 0, 'L'); $pdf->SetFont('Arial', 'B', 14); $pdf->SetTextColor(255, 0, 0); $pdf->Cell(23, 3, 'Nro. ' . $id_Pago, 0, 1, 'C'); //Linea 4 $pdf->SetFont('Arial', '', 7); $pdf->SetTextColor(00, 00, 00); $pdf->Cell(53, 3, '', 0, 0, 'C'); $pdf->Cell(80, 3, 'Cagua Edo. Aragua. Telfs: 0244-3964557 / 0426-5125749', 0, 1, 'C'); //Linea 5 $pdf->Cell(47, 3, '', 0, 0, 'C'); $pdf->Cell(80, 3, '0416-0458957 / 0426-5180385 / 0424-3261656', 0, 1, 'C'); $pdf->Ln(9); $pdf->SetFont('arial', '', 11); $pdf->SetTextColor(0, 0, 0); $pdf->SetFillColor(255, 255, 255); $pdf->SetStyle("t1", "arial", "BU", 11, "0,0,0"); $pdf->SetStyle("tx", "arial", "", 11, "0,0,0"); //DETALLE DEL CONTRATO $cli = $row_Cliente['primerApellido'] . ' ' . $row_Cliente['segundoApellido'] . ', ' . $row_Cliente['nombres']; $cli = strtoupper($cli); //////////////////////////////////////////////////// //Convierte fecha de mysql a normal //////////////////////////////////////////////////// function cambiaf($fecha) { ereg("([0-9]{2,4})-([0-9]{1,2})-([0-9]{1,2})", $fecha, $mifecha); $lafecha = $mifecha[3] . " / " . $mifecha[2] . " / " . $mifecha[1]; return $lafecha; } //Linea 1