case '4': $nt = 'H/A'; break; case '5': $nt = 'Alley'; break; } $csvarray[$nn][$nt] = $data[$x]; } if ($nn == 15) { $nn++; $data = ''; $nt = 'Week'; $csvarray[$nn][$nt] = '2016'; $nt = 'Date'; $csvarray[$nn][$nt] = $data; $nt = 'Day'; $csvarray[$nn][$nt] = $data; $nt = 'Versus'; $csvarray[$nn][$nt] = $data; $nt = 'H/A'; $csvarray[$nn][$nt] = $data; $nt = 'Alley'; $csvarray[$nn][$nt] = $data; } $nn++; } fclose($handle); } $pdf->ezTable($csvarray); $pdf->ezStream();
//print_r($data12); //print_r($data13); //print_r($data2);break; //$fecha = date("F j, Y"); //$fecha = date(); setlocale(LC_TIME, "es_ES"); $fecha = strftime("%d de %B del %Y"); $pdf = new Creport('a4', 'landscape'); $pdf->ezSetMargins(20, 70, 20, 20); $pdf->selectFont('./fonts/Helvetica'); $pdf->ezText('CONSULTOR', 20, array('justification' => 'center')); $pdf->ezText('AEVIVIENDA <c:uline>Registro #</c:uline> ' . $idregistro_entidad, 11, array('justification' => 'center')); $pdf->ezText('www.aevivienda.gob.bo <c:uline>Fecha Actual:</c:uline> ' . $fecha, 11, array('justification' => 'center')); $pdf->ezText(''); $pdf->ezText('DATOS GENERALES', 15, array('justification' => 'left')); $pdf->ezTable($data1, '', 'Datos Provenientes Durante el Registro', array('width' => 560, 'maxWidth' => 600, 'fontSize' => 7)); $pdf->ezText(''); $pdf->ezText('DATOS ESPECIFICOS', 15, array('justification' => 'left')); $pdf->ezTable($data12, '', 'Datos Provenientes Durante el Registro', array('width' => 560, 'maxWidth' => 600, 'fontSize' => 7)); $pdf->ezText(''); $pdf->ezText('DATOS COMPLEMENTARIOS', 15, array('justification' => 'left')); $pdf->ezTable($data13, '', 'Datos Provenientes Durante el Registro', array('width' => 560, 'maxWidth' => 600, 'fontSize' => 7)); $footer = $pdf->openObject(); $pdf->addText(500, 30, 8, "TECNICO"); $pdf->line(490, 40, 600, 40); $pdf->addText(620, 30, 8, "LEGAL"); $pdf->line(610, 40, 720, 40); $pdf->addText(740, 30, 8, "PROPONENTE"); $pdf->line(730, 40, 840, 40); $pdf->closeObject(); $pdf->addObject($footer, "all");
//print_r($data12); //print_r($data13); //print_r($data2);break; //$fecha = date("F j, Y"); //$fecha = date(); setlocale(LC_TIME, "es_ES"); $fecha = strftime("%d de %B del %Y"); $pdf = new Creport('a4', 'landscape'); $pdf->ezSetMargins(20, 70, 20, 20); $pdf->selectFont('./fonts/Helvetica'); $pdf->ezText('Entidades Ejecutoras', 20, array('justification' => 'center')); $pdf->ezText('AEVIVIENDA <c:uline>Registro #</c:uline> ' . $idregistro_entidad, 11, array('justification' => 'center')); $pdf->ezText('www.aevivienda.gob.bo <c:uline>Fecha Actual:</c:uline> ' . $fecha, 11, array('justification' => 'center')); $pdf->ezText(''); $pdf->ezText('DATOS GENERALES', 15, array('justification' => 'left')); $pdf->ezTable($data1, '', 'Datos Provenientes Durante el Registro', array('width' => 560, 'maxWidth' => 600, 'fontSize' => 7)); $pdf->ezText(''); $pdf->ezText('DATOS ESPECIFICOS', 15, array('justification' => 'left')); $pdf->ezTable($data12, '', 'Datos Provenientes Durante el Registro', array('width' => 560, 'maxWidth' => 600, 'fontSize' => 7)); $pdf->ezText(''); $pdf->ezText('DATOS COMPLEMENTARIOS', 15, array('justification' => 'left')); $pdf->ezTable($data13, '', 'Datos Provenientes Durante el Registro', array('width' => 560, 'maxWidth' => 600, 'fontSize' => 7)); $footer = $pdf->openObject(); $pdf->ezImage('/media/img/logoaevivienda.png', 50, 0, 'full', 'left'); $pdf->addText(500, 30, 8, "TECNICO"); $pdf->line(490, 40, 600, 40); $pdf->addText(620, 30, 8, "LEGAL"); $pdf->line(610, 40, 720, 40); $pdf->addText(740, 30, 8, "PROPONENTE"); $pdf->line(730, 40, 840, 40); $pdf->closeObject();
//print_r($data13); //print_r($data2);break; //$fecha = date("F j, Y"); //$fecha = date(); setlocale(LC_TIME, "es_ES"); $fecha = strftime("%d de %B del %Y"); $pdf = new Creport('a4', 'portrate'); $pdf->ezSetMargins(20, 70, 20, 20); $pdf->selectFont('./fonts/Helvetica'); $pdf->ezText('Registro de Datos', 20, array('justification' => 'center')); $pdf->ezText('AEVIVIENDA <c:uline>Nro</c:uline> ' . $pinempresa, 11, array('justification' => 'center')); $pdf->ezText('www.aevivienda.gob.bo <c:uline>Fecha Actual:</c:uline> ' . $fecha, 11, array('justification' => 'center')); $pdf->ezText(''); $pdf->ezText(''); $pdf->ezText(''); $pdf->ezText(''); $pdf->ezTable($data1, '', 'Datos Provenientes Durante el Registro', array('width' => 560, 'maxWidth' => 600, 'fontSize' => 7)); $pdf->ezText(''); $pdf->ezText(''); $pdf->ezText(''); $pdf->ezText('1.- Imprima dos copias de este registro.', 9, array('justification' => 'left')); $pdf->ezText('2.- Adjunte documentacion original y fotocopias simples de toda la informacion registrada en el sistema para su verificacion.', 9, array('justification' => 'left')); $pdf->ezText('3.- Contactese con la departamental correspondiente presentar toda su docuemntacion incluido este repote.', 9, array('justification' => 'left')); $pdf->ezText(''); /* $pdf->ezText('Fecha: ' . $fecha, 15, array( 'justification' => 'right' )); */ $pdf->ezStream(); }
//print_r($data12); //print_r($data13); //print_r($data2);break; //$fecha = date("F j, Y"); //$fecha = date(); setlocale(LC_TIME, "es_ES"); $fecha = strftime("%d de %B del %Y"); $pdf = new Creport('a4', 'landscape'); $pdf->ezSetMargins(20, 70, 20, 20); $pdf->selectFont('./fonts/Helvetica'); $pdf->ezText('PROVEEDORES', 20, array('justification' => 'center')); $pdf->ezText('AEVIVIENDA <c:uline>Registro #</c:uline> ' . $idregistro_entidad, 11, array('justification' => 'center')); $pdf->ezText('www.aevivienda.gob.bo <c:uline>Fecha Actual:</c:uline> ' . $fecha, 11, array('justification' => 'center')); $pdf->ezText(''); $pdf->ezText('DATOS GENERALES', 15, array('justification' => 'left')); $pdf->ezTable($data1, '', 'Datos Provenientes Durante el Registro', array('width' => 560, 'maxWidth' => 600, 'fontSize' => 7)); $pdf->ezText(''); $pdf->ezText('DATOS ESPECIFICOS', 15, array('justification' => 'left')); $pdf->ezTable($data12, '', 'Datos Provenientes Durante el Registro', array('width' => 560, 'maxWidth' => 600, 'fontSize' => 7)); $pdf->ezText(''); $pdf->ezText('DATOS COMPLEMENTARIOS', 15, array('justification' => 'left')); $pdf->ezTable($data13, '', 'Datos Provenientes Durante el Registro', array('width' => 560, 'maxWidth' => 600, 'fontSize' => 7)); $footer = $pdf->openObject(); $pdf->ezImage('/media/img/logoaevivienda.png', 50, 0, 'full', 'left'); $pdf->addText(500, 30, 8, "TECNICO"); $pdf->line(490, 40, 600, 40); $pdf->addText(620, 30, 8, "LEGAL"); $pdf->line(610, 40, 720, 40); $pdf->addText(740, 30, 8, "PROPONENTE"); $pdf->line(730, 40, 840, 40); $pdf->closeObject();
if (strpos(PHP_OS, 'WIN') !== false) { $pdf->tempPath = '../'; } $pdf->ezSetMargins(5, 5, 5, 5); $mainFont = 'Times-Roman'; // select a font $pdf->selectFont($mainFont); $size = 12; $height = $pdf->getFontHeight($size); // modified to use the local file if it can $pdf->openHere('Fit'); //$border['width'] = 1; $pdf->ezImage('img/logo2.png', '25', '125', '', 'left', ''); $pdf->ezText(''); $pdf->ezText(''); $meio = array(); $json = file_get_contents('..\\json\\fornecedor.json'); $lendo = json_decode($json, true); $x = 0; foreach ($lendo as $objeto) { $meio[$x] = array('nome' => $objeto['nome'], 'cnpj' => $objeto['cnpj'], 'fone' => $objeto['fone']); $x++; } $cols = array('nome' => 'Nome', 'cnpj' => 'CNPJ', 'fone' => 'Telefone', 'cidade' => 'Cidade', 'contato' => 'Contato', 'bairro' => 'Bairro'); $pdf->ezTable($meio, $cols); if (isset($_GET['d']) && $_GET['d']) { echo $pdf->ezOutput(TRUE); } else { $pdf->ezStream(array('compress' => 0)); } //error_log($pdf->messages);
// select a font $pdf->selectFont($mainFont); $size = 12; $height = $pdf->getFontHeight($size); // modified to use the local file if it can $pdf->openHere('Fit'); $mydata = array(); $MAXcodeWidth = 0; for ($i = 0; $i < 7; $i++) { $const = ''; $r = rand(1000, 9999); // return rectangle array from code39line.php $code39RECT = code39($r, 0.8, 17, 0, -5); foreach ($code39RECT as $v) { $const .= '<C:rect:' . implode(",", $v) . '>'; // x position + width if ($v['x'] + $v['b'] > $MAXcodeWidth) { $MAXcodeWidth = $v['x'] + $v['b']; } } $mydata[$i]['value'] = $r; $mydata[$i]['barcode'] = $const; } $pdf->ezText("This example shows you how to implement code39 barcodes in ROS PDF class. It uses the Callback function 'rect' which is defined in the custom class Creport (inhierted from Cezpdf)\n"); $pdf->ezText("<b>IMPORTANT: In version >= 0.12.0 it is required to allow custom tags (by using \$pdf->allowedTags) before using it</b>"); $pdf->ezTable($mydata, array('value' => 'Value', 'barcode' => 'Barcode'), '', array('showLines' => 3, 'shaded' => 0, 'rowGap' => 6, 'showHeadings' => 1, 'cols' => array('barcode' => array('width' => $MAXcodeWidth + 10)))); if (isset($_GET['d']) && $_GET['d']) { echo $pdf->ezOutput(TRUE); } else { $pdf->ezStream(); }