Exemplo n.º 1
0
 /**
  * PDF image renderer
  *
  * @param PDF $pdf
  *
  * @return void
  */
 function render($pdf)
 {
     global $lastpicbottom, $lastpicpage, $lastpicleft, $lastpicright;
     // Check for a pagebreak first
     if ($pdf->checkPageBreakPDF($this->height + 5)) {
         $this->y = $pdf->GetY();
     }
     $curx = $pdf->GetX();
     // If current position (left)set "."
     if ($this->x == ".") {
         $this->x = $pdf->GetX();
     } else {
         $this->x = $pdf->addMarginX($this->x);
         $pdf->SetX($curx);
     }
     if ($this->y == ".") {
         //-- first check for a collision with the last picture
         if (isset($lastpicbottom)) {
             if ($pdf->PageNo() == $lastpicpage && $lastpicbottom >= $pdf->GetY() && $this->x >= $lastpicleft && $this->x <= $lastpicright) {
                 $pdf->SetY($lastpicbottom + 5);
             }
         }
         $this->y = $pdf->GetY();
     } else {
         $pdf->SetY($this->y);
     }
     if ($pdf->getRTL()) {
         $pdf->Image($this->file, $pdf->getPageWidth() - $this->x, $this->y, $this->width, $this->height, "", "", $this->line, false, 72, $this->align);
     } else {
         $pdf->Image($this->file, $this->x, $this->y, $this->width, $this->height, "", "", $this->line, false, 72, $this->align);
     }
     $lastpicpage = $pdf->PageNo();
     $pdf->lastpicpage = $pdf->getPage();
     $lastpicleft = $this->x;
     $lastpicright = $this->x + $this->width;
     $lastpicbottom = $this->y + $this->height;
     // Setup for the next line
     if ($this->line == "N") {
         $pdf->SetY($lastpicbottom);
     }
 }
Exemplo n.º 2
0
$c4h = $c3h / 2;
$bottom = $top + $c1h;
$pdf = new PDF('L', 'mm', 'Letter');
$pdf->Open();
$pdf->SetTopMargin(13);
$pdf->SetLeftMargin(13);
$pdf->SetRightMargin(10);
$pdf->SetAutoPageBreak(True, 13);
$pdf->AddPage();
$pdf->SetCreator($_SERVER["PHP_SELF"]);
$pdf->SetAuthor("Keith Morrison, keithm@infused.org");
$pdf->SetTitle(sprintf(gtc("Pedigree for %s"), $o->full_name()));
$pdf->SetSubject(gtc("Genealogy"));
# Person 1
$pdf->SetY($top);
$pdf->SetX($c1x);
$pdf->Cell($w, $c1h, '', 1, 0, 'L');
$pdf->SetY($top + $c1h / 2 - 6);
$pdf->SetX($c1x);
$pdf->SetFont($font, 'B', 10);
$pdf->MultiCell($w, 4, isset($g_node_strings[1][0]) ? $g_node_strings[1][0] : '', 0, 'L');
$pdf->SetFont($font, '', 10);
$pdf->Cell($w, 4, isset($g_node_strings[1][1]) ? $g_node_strings[1][1] : '', 0, 2, 'L');
$pdf->Cell($w, 4, isset($g_node_strings[1][2]) ? $g_node_strings[1][2] : '', 0, 0, 'L');
# Person 2
$pdf->SetY($top);
$pdf->SetX($c2x);
$pdf->Cell($w, $c2h, '', 1, 0, 'L');
$pdf->SetY($top + $c2h / 2 - 6);
$pdf->SetX($c2x);
$pdf->SetFont($font, 'B', 10);
//Instancia a classe gerador de pdf
$pdf = new PDF();
//Define os atributos de propriedade do arquivo PDF
$pdf->SetCreator('work | eventos');
$pdf->SetAuthor($usuarioNome . " - " . $empresaNome);
$pdf->SetTitle('Relação de Momentos de Repertório');
$pdf->SetSubject('Relatório gerado automaticamente pelo sistema');
$pdf->AliasNbPages();
$pdf->AddPage();
//Títulos das colunas
$pdf->SetFont('Arial', 'B', 10);
//Define a cor RGB do fundo da celula
$pdf->SetFillColor(178, 178, 178);
//Faz a célula ser preenchida. Isso é feito setando 1 após a expressao de alinhamento
$pdf->Cell(0, 6, 'Descrição do Momento de Repertório', 1, 0, 'L', 1);
$pdf->SetX(170);
$pdf->Cell(0, 6, 'Ativo');
//Monta as linhas com os dados da query
$pdf->SetFont('Arial', '', 10);
while ($dados = mysql_fetch_array($sql)) {
    switch ($dados[ativo]) {
        case 0:
            $ativo = "Inativo";
            break;
        case 1:
            $ativo = "Ativo";
            break;
    }
    $pdf->ln();
    $pdf->Cell(0, 5, $dados['nome']);
    $pdf->SetX(170);
Exemplo n.º 4
0
//$address = getAddressBookPermanetn($_POST['cus_already_bill']); 
 
$noaddress = false;

   
   $stnoname = "Street name";
   $prov = "Prov";
   $postal = "600110";
   $city = "chennai";

$total_due = 1000;
$taxs = 500;
$total_due= "$".number_format($total_due, 2, '.', ','); 

$pdf->Ln(7);
$pdf->SetX(5);
$pdf->Write(8,"$name"); 
$pdf->Ln(7);
$pdf->SetX(5);
$pdf->Write(8,"$stnoname");
$pdf->Ln(7);
$pdf->SetX(5);
$pdf->Write(8,"$city $prov $postal");
$pdf->ln(15);

$head_valur = array("Header","Amount");
$caption = array();
$caption1["header"][] = "Settlement  Period \n".$_SESSION['startdate']." to ".$_SESSION['todate'];
$caption["price"][] = "$909.34";
$pdf->SetFont('Helvetica','B',10);
$settel2 = $_SESSION['startdate']." to ".$_SESSION['todate'];
$pdf->SetCreator('*****@*****.**');
$pdf->SetAuthor($usuarioNome . " - " . $empresaNome);
$pdf->SetTitle('Detalhamento do cliente');
$pdf->SetSubject('Relatório gerado automaticamente pelo sistema');
$pdf->AliasNbPages();
$pdf->AddPage();
$pdf->SetY(25);
$pdf->SetFont('Arial', 'B', 10);
$pdf->SetFillColor(178, 178, 178);
$pdf->Cell(0, 6, 'Detalhamento do Cliente', 1, 0, 'C', 1);
//Nova Linha
$pdf->ln();
$pdf->SetFont('Arial', 'B', 9);
$pdf->Cell(0, 6, 'Tipo Cliente:', 1, 0, 'L');
$pdf->SetFont('Arial', 'I', 9);
$pdf->SetX(39);
$pdf->Cell(0, 6, $conta_descricao, 0, 0, 'L');
$pdf->SetX(57);
$pdf->SetFont('Arial', 'B', 9);
$pdf->Cell(0, 6, 'Nome/Razão Social:', 1, 0, 'L');
$pdf->SetFont('Arial', 'I', 9);
$pdf->SetX(88);
$pdf->Cell(0, 6, $dados_conta['nome'], 0, 0, 'L');
$pdf->Image($conta_figura, 35, 32, 4, 4);
//Nova Linha
$pdf->ln();
$pdf->SetFont('Arial', 'B', 9);
$pdf->Cell(0, 6, 'Endereço:', 1, 0, 'L');
$pdf->SetFont('Arial', 'I', 9);
$pdf->SetX(37);
$pdf->Cell(0, 6, $dados_conta['endereco'], 0, 0, 'L');
Exemplo n.º 6
0
$pdf->AddPage();
$pdf->Image('../imagenes/logo.jpg', 40, 8, 33);
// Arial bold 15
$pdf->SetFont('Arial', 'B', 8);
// Movernos a la derecha
$pdf->SetY(4);
$pdf->Cell(80);
// Título
$pdf->Cell(60, 5, 'Angytours', 0, 2, 'C');
$pdf->Cell(60, 5, 'Calle 59J # 565 X 110 y 112 Col Bojorquez', 0, 2, 'C');
$pdf->Cell(60, 5, 'Tel: (999)9-12-28-95 | Cel: (044)99-92-44-54-14', 0, 2, 'C');
$pdf->Cell(60, 5, 'Correo: angeviajes@hotmail.com', 0, 2, 'C');
$pdf->Cell(60, 5, 'RFC: PELA620129L36', 0, 2, 'C');
$pdf->SetFont('Arial', '', 10);
$pdf->SetY(35);
$pdf->SetX(140);
$pdf->Cell(40, 8, utf8_decode("Fecha: ") . utf8_decode($dias[date('w')] . " " . date('d') . " de " . $meses[date('n') - 1] . " del " . date('Y')), 0, 1);
$pdf->SetY(45);
$pdf->SetX(20);
$pdf->Cell(130, 8, utf8_decode("Cliente : ") . utf8_decode($nombre), 1, 0);
$pdf->Cell(30, 8, utf8_decode("Folio : ") . $FolioGrupo, 1, 1);
$pdf->SetX(20);
$pdf->Cell(60, 8, utf8_decode("Cantidad : ") . $CostoTotal, 1, 0, 'L');
$pdf->MultiCell(100, 8, utf8_decode("Importe Letras : ") . $CantLetras, 1, 'L');
$pdf->SetX(20);
$pdf->MultiCell(160, 5, utf8_decode("Descripción : ") . utf8_decode($Descripcion), 1, 'L');
$pdf->SetX(20);
$pdf->Cell(100, 14, utf8_decode("Le atendio : ") . utf8_decode($nombreU), 1, 0);
$pdf->Cell(60, 14, utf8_decode("Firma : "), 1, 2);
///Segundo Cupon
$pdf->Image('../imagenes/logo.jpg', 40, 140, 32, 24);
Exemplo n.º 7
0
        $nit = $rs['nit'];
        $matricula = $rs['matricula'];
        $telefono = $rs['celular'];
        $correo = $rs['mail'];
        $montog = number_format($rs['montog'], 2);
        $montoesp = number_format($rs['montoesp'], 2);
        $tiempo = $rs['tiempomeses'] . "(meses)";
        $tiempoesp = $rs['tiempomesesp'] . "(meses)";
        $data[] = array($entidad, $nit, $matricula, $telefono, $correo, $montog, $montoesp, $tiempo, $tiempoesp);
        $cont++;
    }
    $pdf->SetFont('Arial', '', 5);
    $pdf->BasicTable($header, $data);
    $pdf->SetFont('helvetica', 'B', 8);
    $pdf->Cell(180, 12, utf8_decode('ESTA INFORMACION ESTA SIENDO ASOCIADA A SU USUARIO.'), 0, FALSE, 'C');
    $pdf->Ln(20);
    //codigo de barras____________________
    $pdf->SetX(35);
    $pdf->Sety(135);
    $pdf->Cell(140, 25, '', 0, FALSE, 'R');
    $pdf->Code39(140, 250, $codigo, 1, 8);
    $pdf->Output('BUSQUEDA_' . $user . '.pdf', 'D');
}
function fecha($fecha = '')
{
    if (strlen($fecha) > 0) {
        return date('d/m/Y', strtotime($fecha));
    } else {
        return '-';
    }
}
 //exit("Error:".$str3);
 $res3 = mysql_query($str3, $conn);
 while ($bar3 = mysql_fetch_assoc($res3)) {
     if ($bar3['plus'] == '1') {
         if ($bar3['jumlah'] != '') {
             $arrValPlus[$bar3['karyawanid']][$bar3['idkomponen']] = $bar3['jumlah'];
         }
     } elseif ($bar3['plus'] == '0') {
         if ($bar3['jumlah'] != '') {
             $arrValMinus[$bar3['karyawanid']][$bar3['idkomponen']] = $bar3['jumlah'];
         }
     }
 }
 foreach ($arrKary as $dtKary) {
     $pdf->Image('images/logo.jpg', $pdf->GetX(), $pdf->GetY(), 10);
     $pdf->SetX($pdf->getX() + 10);
     $pdf->SetFont('Arial', 'B', 8);
     $pdf->Cell(75, 12, $_SESSION['org']['namaorganisasi'], 0, 1, 'L');
     $pdf->SetFont('Arial', '', 6);
     $pdf->Cell(71, 4, $_SESSION['lang']['slipGaji'] . ': ' . $arrBln[$idBln] . "-" . $bln[0], 'T', 0, 'L');
     $pdf->SetFont('Arial', '', 6);
     $pdf->Cell(25, 4, 'Printed on: ' . date('d-m-Y: H:i:s'), "T", 1, 'R');
     $pdf->SetFont('Arial', '', 6);
     $pdf->Cell(25, 4, $_SESSION['lang']['nik'] . "/" . $_SESSION['lang']['tmk'], 0, 0, 'L');
     $pdf->Cell(35, 4, ": " . $arrNik[$dtKary] . "/" . tanggalnormal($arrTglMsk[$dtKary]), 0, 0, 'L');
     $pdf->Cell(18, 4, $_SESSION['lang']['unit'] . "/" . $_SESSION['lang']['bagian'], 0, 0, 'R');
     $pdf->Cell(28, 4, ': ' . $idAfd . " / " . $arrBag[$dtKary], 0, 1, 'L');
     $pdf->Cell(25, 4, $_SESSION['lang']['namakaryawan'] . ":", 0, 0, 'L');
     $pdf->Cell(35, 4, ': ' . $arrNmKary[$dtKary], 0, 0, 'L');
     $pdf->Cell(18, 3, $_SESSION['lang']['jabatan'], 0, 0, 'R');
     $pdf->Cell(28, 4, ':' . $arrJbtn[$dtKary], 0, 1, 'L');
Exemplo n.º 9
0
/**
 * Genera un reporte en PDF
 *
 * @param array $result
 * @param array $sumArray
 * @param string $title
 * @param array $weightArray
 * @param array $headerArray
 */
function pdf($result, $sumArray, $title, $weightArray, $headerArray)
{
    $config = Config::read('config');
    $active_app = Router::get_application();
    //Orientación
    if ($sumArray > 200) {
        $orientation = 'L';
    } else {
        $orientation = 'P';
    }
    $numRows = 140;
    //Tipo de Papel
    if ($sumArray > 250) {
        $paper = 'legal';
    } else {
        $paper = 'letter';
    }
    if ($paper == 'letter' && $orientation == 'P') {
        $widthPage = 220;
        $numRows = 42;
    }
    if ($paper == 'legal' && $orientation == 'L') {
        $widthPage = 355;
        $numRows = 30;
    }
    if ($paper == 'letter' && $orientation == 'L') {
        $widthPage = 270;
        $numRows = 30;
    }
    //Crear Documento PDF
    $pdf = new PDF($orientation, 'mm', $paper);
    $pdf->Open();
    $pdf->AddPage();
    //Nombre del Listado
    $pdf->SetFillColor(255, 255, 255);
    $pdf->AddFont('Verdana', '', 'verdana.php');
    $pdf->SetFont('Verdana', '', 14);
    $pdf->SetY(20);
    $pdf->SetX(0);
    $pdf->Ln();
    if ($config->{$active_app}->name) {
        $pdf->MultiCell(0, 6, strtoupper($config->{$active_app}->name), 0, "C", 0);
    }
    $pdf->MultiCell(0, 6, "REPORTE DE " . strtoupper($title), 0, "C", 0);
    $pdf->SetFont('Verdana', '', 12);
    if (isset($_SESSION['fecsis'])) {
        $pdf->MultiCell(0, 6, "FECHA " . date("Y-m-d"), 0, "C", 0);
    }
    $pdf->Ln();
    //Colores, ancho de línea y fuente en negrita
    $pdf->SetFillColor(0xf2, 0xf2, 0xf2);
    $pdf->SetTextColor(0);
    $pdf->SetDrawColor(0, 0, 0);
    $pdf->SetLineWidth(0.2);
    $pdf->SetFont('Arial', 'B', 10);
    if ($weightArray[0] < 11) {
        $weightArray[0] = 11;
    }
    //Parametros del Reporte
    $pos = floor($widthPage / 2 - $sumArray / 2);
    $pdf->SetX($pos);
    for ($i = 0; $i <= count($headerArray) - 1; $i++) {
        $pdf->Cell($weightArray[$i], 7, $headerArray[$i], 1, 0, 'C', 1);
    }
    $pdf->Ln();
    //Restauración de colores y fuentes
    $pdf->SetFillColor(224, 235, 255);
    $pdf->SetTextColor(0);
    $pdf->SetFont('Arial', 'B', 7);
    //print_r($weightArray);
    //Buscamos y listamos
    $n = 1;
    $p = 1;
    $t = 0;
    foreach ($result as $row) {
        //$pdf->Cell(Ancho, Alto, contenido, ?, ?, Align)
        if ($n > $numRows || $p == 1 && $n > $numRows - 3) {
            $pdf->AddPage($orientation);
            $pdf->SetY(30);
            $pdf->SetX($pos);
            $pdf->SetFillColor(0xf2, 0xf2, 0xf2);
            $pdf->SetTextColor(0);
            $pdf->SetDrawColor(0, 0, 0);
            $pdf->SetLineWidth(0.2);
            $pdf->SetFont('Arial', 'B', 10);
            for ($i = 0; $i < count($headerArray); $i++) {
                $pdf->Cell($weightArray[$i], 7, $headerArray[$i], 1, 0, 'C', 1);
            }
            $pdf->Ln();
            $pdf->SetFillColor(224, 235, 255);
            $pdf->SetTextColor(0);
            $pdf->SetFont('Arial', 'B', 7);
            $n = 1;
            $p++;
        }
        $pdf->SetX($pos);
        for ($i = 0; $i <= count($row) - 1; $i++) {
            if (is_numeric($row[$i])) {
                $pdf->Cell($weightArray[$i], 5, trim($row[$i]), 'LRTB', 0, 'C');
            } else {
                $pdf->Cell($weightArray[$i], 5, trim($row[$i]), 'LRTB', 0, 'L');
            }
        }
        $n++;
        $t++;
        $pdf->Ln();
    }
    $pdf->SetX($pos);
    $pdf->SetFont('Arial', 'B', 7);
    $pdf->SetFillColor(0xf2, 0xf2, 0xf2);
    $pdf->Cell($weightArray[0], 5, "TOTAL", 'LRTB', 0, 'R');
    $pdf->Cell($weightArray[1], 5, $t, 'LRTB', 0, 'L');
    /*print "<div style='background: url(img/bg2.jpg) #F2f2f2;border:1px solid #c0c0c0'>
    	<table><td><img src='img/information.gif' width='64' height='64'/></td><td>";
    	print "Papel: $paper<br>";
    	print "Orientación: $orientation<br>";
    	print "Ancho Página: $widthPage mm<br>";
    	print "Número Páginas: $p<br>";
    	print "</td></table></div><br>";*/
    $file = md5(uniqid());
    $pdf->Output(CORE_PATH . 'public/temp/' . $file . ".pdf", 'F');
    if (isset($raw_output)) {
        print "<script type='text/javascript'> window.open('" . KUMBIA_PATH . "temp/" . $file . ".pdf', null); </script>";
    } else {
        Generator::forms_print("<script type='text/javascript'> window.open('" . KUMBIA_PATH . "temp/" . $file . ".pdf', null); </script>");
    }
}
Exemplo n.º 10
0
             break;
         case 3:
             $desc_situacao = "Títulos Não Encontrados";
             break;
     }
     $pdf->SetFont('Arial', 'B', 14);
     $pdf->Cell(0, 5, $desc_situacao);
     $pdf->ln();
 }
 //Títulos das colunas
 $pdf->SetFont('Arial', 'B', 10);
 //Define a cor RGB do fundo da celula
 $pdf->SetFillColor(178, 178, 178);
 //Faz a célula ser preenchida. Isso é feito setando 1 após a expressao de alinhamento
 $pdf->Cell(0, 6, 'Data', 1, 0, 'L', 1);
 $pdf->SetX(31);
 $pdf->Cell(0, 6, 'Nosso Número');
 $pdf->SetX(70);
 $pdf->Cell(150, 6, 'Sacado');
 $pdf->Cell(30, 6, 'Valor', 0, 0, 'R');
 $pdf->Cell(30, 6, 'Juros', 0, 0, 'R');
 //Monta as linhas com os dados da query
 $pdf->SetFont('Arial', '', 10);
 while ($dados = mysql_fetch_array($query)) {
     switch ($dados["status"]) {
         case 1:
             $desc_situacao = "Títulos Processados";
             break;
         case 2:
             $desc_situacao = "Titulos Não Processados - Juros";
             break;
Exemplo n.º 11
0
    $pdf->AddPage();
    $pdf->AddCol('invseq', '9%', 'Invoice #', 'L');
    $pdf->AddCol('voucher_date', '10%', 'Date', 'L');
    $pdf->AddCol('voucher_cheque', '9%', 'Cheque', 'L');
    //if ($ret['account_cate'] != '276') {
    $pdf->AddCol('voucher_remarks', '42%', 'Description', 'L');
    /*} else {
    		$pdf->AddCol('voucher_remarks', '43%', 'Description', 'L');
    		$pdf->AddCol('days',            '5%',  'Days',        'R');
    	}*/
    $pdf->AddCol('debit_amount', '10%', 'Debit', 'R');
    $pdf->AddCol('credit_amount', '10%', 'Credit', 'R');
    $pdf->AddCol('balance', '10%', 'Balance', 'R');
    $pdf->Table($ret['data'], $prop);
    $ac = number_format($ret['aob']);
    if (count($ret['data']) > 0) {
        $ac = $ret['data'][count($ret['data']) - 1]['balance'];
    }
    $pdf->SetFont('Arial', 'B', 10);
    $cellSize = 11 / 100 * $pdf->TableWidth;
    $pdf->SetX($pdf->lMargin);
    $pdf->Cell(67 / 100 * $pdf->TableWidth, 5, 'Total', 0, 0, 'C');
    $pdf->Cell($cellSize, 5, number_format($ret['dr']), 0, 0, 'R');
    $pdf->Cell($cellSize, 5, number_format($ret['cr']), 0, 0, 'R');
    $pdf->Cell($cellSize, 5, $ac, 0, 0, 'R');
}
if (isset($_GET['account_class']) && strlen($_GET['account_class']) > 0) {
    $pdf->Output("ledger_class.pdf", "D");
} else {
    $pdf->Output("account_ledger.pdf", "D");
}
Exemplo n.º 12
0
    }
}
// end of PDF class
$dbLink = get_db_connection();
$result = mysql_query("select lgumunicipality, lguprovince, lguoffice from ebpls_buss_preference") or die(mysql_error());
$resulta = mysql_fetch_row($result);
//$pdf=new FPDF('L','mm','Legal');
$pdf = new PDF('L', 'mm', 'Legal');
$pdf->setLGUinfo($resulta[0], $resulta[1], $resulta[2]);
$pdf->AddPage();
$pdf->AliasNbPages();
$Y_Label_position = 50;
$Y_Table_Position = 55;
$pdf->SetFont('Arial', 'B', 6);
$pdf->SetY($Y_Label_position);
$pdf->SetX(5);
$pdf->Cell(10, 5, 'SEQ. NO.', 1, 0, 'C');
$pdf->SetX(15);
$pdf->Cell(25, 5, 'PERMIT NO.', 1, 0, 'C');
$pdf->SetX(40);
$pdf->Cell(55, 5, 'NAME OF OWNER', 1, 0, 'C');
$pdf->SetX(95);
$pdf->Cell(60, 5, 'BUSINESS NAME', 1, 0, 'C');
$pdf->SetX(155);
$pdf->Cell(60, 5, 'BUSINESS NATURE', 1, 0, 'C');
$pdf->SetX(215);
$pdf->Cell(60, 5, 'BUSINESS ADDRESS', 1, 0, 'C');
$pdf->SetX(275);
$pdf->Cell(30, 5, 'CAPITAL INVESTMENT', 1, 0, 'C');
$pdf->SetX(305);
$pdf->Cell(30, 5, 'GROSS LAST YEAR', 1, 0, 'C');
$sumbak2 = mysql_query("select sum(backtax) from comparative_statement where for_year='{$datenext}' and\n                                                        paid = 0");
$sumbak2 = mysql_fetch_row($sumbak2);
$graphbak1 = $sumbak1[0] / 100000;
$graphbak2 = $sumbak2[0] / 100000;
$getlgu = @mysql_query("select city_municipality_desc from ebpls_city_municipality where city_municipality_code = '{$resulta['0']}'");
$getlgu = @mysql_fetch_row($getlgu);
$getprov = @mysql_query("select province_desc from ebpls_province where province_code = '{$resulta['1']}'");
$getprov = @mysql_fetch_row($getprov);
//$pdf=new FPDF('L','mm','Legal');
$pdf = new PDF('L', 'mm', 'Legal');
$pdf->setLGUinfo($getlgu[0], $getprov[0], $resulta[2]);
$pdf->AddPage();
$pdf->AliasNbPages();
$pdf->SetFont('Arial', 'B', 10);
$pdf->SetY(40);
$pdf->SetX(10);
$pdf->Cell(25, 5, '', 0, 0, 'L');
$pdf->SetX(50);
$pdf->Cell(100, 5, '', 0, 1, 'L');
$Y_Label_position = 50;
$Y_Table_Position = 55;
$pdf->SetY(67);
$pdf->SetX(50);
$pdf->Cell(25, 5, 'Taxes', 0, 0, 'L');
$pdf->SetY(87);
$pdf->SetX(50);
$pdf->Cell(25, 5, 'Fees', 0, 0, 'L');
$pdf->SetY(107);
$pdf->SetX(50);
$pdf->Cell(25, 5, 'Surcharge', 0, 0, 'L');
$pdf->SetY(127);
     $prefix = "";
 } elseif ($treelevel == 2) {
     $prefix = "  ";
 } elseif ($treelevel == 3) {
     $prefix = "    ";
 } elseif ($treelevel == 4) {
     $prefix = "       ";
 }
 //if display folder indicator = 1, account with placeholder=1 will display as [account]
 if ($showplacefolderindicator == 1 && $placeholder == 1) {
     $displaytext = $prefix . "[" . $accounts_name . "]";
 } else {
     $displaytext = $prefix . $accounts_name;
 }
 $data = array($prefix . $displaytext, "{$bracket1} {$displayamt1}", "{$bracket2} {$displayamt2}");
 $pdf->SetX($marginx);
 if ($showzero == "on") {
     $checkzero = 1;
 } else {
     $checkzero = $displayamt1;
     if ($checkzero == 0) {
         $checkzero = $displayamt2;
     }
 }
 //if(substr($displaytext,0,1) == "[" || $checkzero <> 0){
 if ($showplacefolderindicator == 1 && $placeholder == 1 || $checkzero != 0 || $checkzero != "0.00") {
     $i = 0;
     foreach ($data as $col) {
         if ($i == 0) {
             $align = 'L';
         } else {
Exemplo n.º 15
0
}
$pdf = new PDF('P', 'mm', 'A4');
$pdf->AddPage();
$th = $_REQUEST['th'];
$renstra = th_renstra($th);
$font = 'Arial';
$noborder = 0;
$border = 1;
$size = 10;
$ln = 5;
$margin = 25;
$tinggi = 275;
$w = array(5, 150);
$pdf->Ln();
$pdf->SetFont($font, 'B', $size + 2);
$pdf->SetX($margin + $w[0]);
$pdf->Cell($w[1], $ln, 'INDIKATOR KINERJA UTAMA', '', 1, 'C');
$max = 0;
$arrUnit = $pdf->SplitToArray($w[1], $ln, trim(strtoupper(nm_unit('480000'))));
if ($max < count($arrUnit)) {
    $max = count($arrUnit);
}
for ($i = 0; $i < $max; $i++) {
    $pdf->SetX($margin + $w[0]);
    $pdf->Cell($w[1], $ln, $arrUnit[$i], '', 1, 'C');
}
$pdf->SetX($margin + $w[0]);
$pdf->Cell($w[1], $ln, 'Periode Renstra ' . $renstra, '', 1, 'C');
$pdf->Ln() * 2;
$w1 = array(0, 65, 95);
$pdf->SetFont($font, 'B', $size);
Exemplo n.º 16
0
//require_once($_SERVER[DOCUMENT_ROOT]."/git/maxcodekarev/configuraciones/conectar.php");
$codfactura = $_REQUEST["codfactura"];
$codproveedor = $_REQUEST["codproveedor"];
$consulta = "Select * from facturasp,proveedores where facturasp.codfactura='{$codfactura}' and facturasp.codproveedor='{$codproveedor}' and facturasp.codproveedor=proveedores.codproveedor";
$resultado = mysql_query($consulta, $conexion);
$lafila = mysql_fetch_array($resultado);
$pdf->Cell(95);
$pdf->Cell(80, 4, "", '', 0, 'C');
$pdf->Ln(4);
$pdf->SetFillColor(255, 255, 255);
$pdf->SetTextColor(0);
$pdf->SetDrawColor(0, 0, 0);
$pdf->SetLineWidth(0.2);
$pdf->SetFont('Arial', 'B', 10);
$pdf->Cell(40, 65, 'CONTRA RECIBO');
$pdf->SetX(10);
$pdf->Cell(95);
$pdf->Cell(80, 4, "", 'LRT', 0, 'L', 1);
$pdf->Ln(4);
$pdf->Cell(95);
$pdf->Cell(80, 4, $lafila["nombre"], 'LR', 0, 'L', 1);
$pdf->Ln(4);
$pdf->Cell(95);
$pdf->Cell(80, 4, $lafila["direccion"], 'LR', 0, 'L', 1);
$pdf->Ln(4);
//Calculamos la provincia
$codigoprovincia = $lafila["codprovincia"];
$consulta = "select * from provincias where codprovincia='{$codigoprovincia}'";
$query = mysql_query($consulta);
$row = mysql_fetch_array($query);
$pdf->Cell(95);
Exemplo n.º 17
0
define('FPDF_FONTPATH', 'font/');
//require('mysql_table.php');
require_once 'fpdf.php';
include "comunes.php";
require_once OBIB_CONF . "conectar.php";
//require_once($_SERVER['DOCUMENT_ROOT']."/git/maxcodekarev/configuraciones/conectar.php");
$pdf = new PDF();
$pdf->Open();
$pdf->AddPage();
// Cabecera
$pdf->Header('../images/logo.jpg', 10, 8, 33, 33);
//Nombre del Listado
$pdf->SetFillColor(255, 255, 255);
$pdf->SetFont('Arial', 'B', 16);
$pdf->SetY(40);
$pdf->SetX(0);
$pdf->MultiCell(290, 6, "Listado de Articulos", 0, "C", 0);
$pdf->Ln();
//Restauracin de colores y fuentes
$pdf->SetFillColor(224, 235, 255);
$pdf->SetTextColor(0);
$pdf->SetFont('Arial', 'B', 7);
/*


echo "</pre>";
print_r($_REQUEST);
echo "</pre>";

GET 
codarticulo 
Exemplo n.º 18
0
$res = query($sql);
$lafila = Row($res);
//$pdf=new PDF();
$pdf = new PDF('P', 'mm', array(210, 297));
$pdf->Open();
$pdf->AddPage();
$pdf->Ln(2);
$pdf->Cell(95);
$pdf->Cell(80, 4, "", '', 0, 'C');
$pdf->Ln(5);
$pdf->SetFillColor(255, 255, 255);
$pdf->SetTextColor(0);
$pdf->SetDrawColor(0, 0, 0);
$pdf->SetLineWidth(0.2);
$pdf->SetFont('Arial', 'B', 10);
$pdf->SetX(130);
$pdf->Ln(40);
// Datos Cliente
$pdf->SetFont('Arial', 'B', 10);
$pdf->SetX(27);
// NOMBRE
$pdf->Cell(130, 4, $nombre);
//$igv=$lafila["IGV"];
$igv = 0;
$pdf->Ln(6);
$pdf->SetX(180);
// NUM GUIA REMIS.
$pdf->Cell(70, 4, "");
$pdf->SetX(27);
// DIRECCION
$pdf->Cell(130, 4, $direccion);
Exemplo n.º 19
0
         if ($agrupar == 3) {
             $pdf->Cell(0, 5, $Agrupamento_nome . $dados["area_interesse_nome"]);
         }
         if ($agrupar == 4) {
             $pdf->Cell(0, 5, $Agrupamento_nome . $dados["ramo_atividade_nome"]);
         }
         if ($agrupar == 5) {
             $pdf->Cell(0, 5, $Agrupamento_nome . $dados["origem_nome"]);
         }
         $pdf->SetFont('Arial', '', 10);
         $pdf->ln();
     }
 }
 //Imprime os dados da conta
 //$pdf->Cell(0,5, $dados['id']);
 $pdf->SetX(12);
 $pdf->SetFont('Arial', 'B', 10);
 $pdf->Cell(0, 5, $dados['nome']);
 $pdf->SetFont('Arial', '', 9);
 $pdf->SetX(105);
 $pdf->Cell(0, 5, $tipo_conta_nome);
 $pdf->SetX(120);
 $pdf->Cell(0, 5, $rating_nome);
 $pdf->SetX(135);
 $pdf->Cell(0, 5, $dados['cidade'] . "/" . $dados['uf']);
 $pdf->SetX(192);
 $pdf->Cell(0, 5, $dados['telefone']);
 $pdf->SetX(216);
 $pdf->Cell(0, 5, $dados['email_geral']);
 $pdf->SetX(276);
 $pdf->Cell(0, 5, $ativo);
Exemplo n.º 20
0
$resulta = mysql_fetch_row($result);
$getlgu = @mysql_query("select city_municipality_desc from ebpls_city_municipality where city_municipality_code = '{$resulta['0']}'");
$getlgu = @mysql_fetch_row($getlgu);
$getprov = @mysql_query("select province_desc from ebpls_province where province_code = '{$resulta['1']}'");
$getprov = @mysql_fetch_row($getprov);
if ($cap_inv2 == "" || $cap_inv2 == 0) {
    $cap_inv2 = 9999999999999;
}
//$pdf=new FPDF('L','mm','Legal');
$pdf = new PDF('L', 'mm', 'Legal');
$pdf->setLGUinfo($getlgu[0], $getprov[0], '');
$pdf->AddPage();
$pdf->AliasNbPages();
$pdf->SetFont('Arial', 'B', 10);
$pdf->SetY(40);
$pdf->SetX(10);
$pdf->Cell(25, 5, '', 0, 0, 'L');
$pdf->SetX(50);
$pdf->Cell(100, 5, '', 0, 1, 'L');
$Y_Label_position = 50;
$Y_Table_Position = 55;
$pdf->SetFont('Arial', 'B', 6);
$pdf->SetY(50);
$pdf->SetX(5);
$pdf->Cell(30, 5, 'USER NAME', 1, 0, 'C');
$pdf->Cell(280, 5, 'ACTIVITY', 1, 0, 'C');
$pdf->Cell(25, 5, 'DATE', 1, 1, 'C');
$date_from = str_replace("/", "", $date_from);
$idate = strtotime($date_from);
//$idate = $idate - (60*60*24);
$date_from = date('Y-m-d', $idate);
Exemplo n.º 21
0
        // Imprimir texto en una columna de 6 cm de ancho
        $this->MultiCell(60, 5, $txt);
        $this->Ln();
        // Cita en itálica
        $this->SetFont('', 'I');
        $this->Cell(0, 5, '(fin del extracto)');
        // Volver a la primera columna
        $this->SetCol(0);
    }
}
$dias = array("Domingo", "Lunes", "Martes", "Miercoles", "Jueves", "Viernes", "Sábado");
$meses = array("Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre");
$pdf = new PDF();
$pdf->AddPage();
$pdf->SetY(35);
$pdf->SetX(110);
$pdf->SetFont('Times', '', 10);
$pdf->Cell(40, 8, utf8_decode("Fecha de Expedicion: ") . utf8_decode($dias[date('w')] . " " . date('d') . " de " . $meses[date('n') - 1] . " del " . date('Y')), 0, 1);
$pdf->SetY(45);
$pdf->SetX(20);
$pdf->Cell(100, 8, utf8_decode("Hotel : ") . $nombreHotel, 0, 0);
$pdf->Cell(60, 8, utf8_decode("Folio de la venta : ") . $folioVenta, 1, 1);
$pdf->SetX(20);
$pdf->Cell(60, 8, utf8_decode("Direccion : ") . $direccion, 0, 1);
$pdf->SetX(20);
$pdf->Cell(100, 8, utf8_decode("Telefono Hotel. : ") . $telefono, 0, 0);
$pdf->Cell(60, 8, utf8_decode("Opradora : ") . $opm, 1, 1);
$pdf->SetX(20);
$pdf->Cell(160, 8, utf8_decode("Coordinador(a) : ") . $ResConP, 1, 1);
$pdf->SetX(20);
$pdf->Cell(160, 10, utf8_decode("Pasajero Titular : ") . $Nombre, 'LR', 1);
Exemplo n.º 22
0
/*if($bar['ffa']!=0){
			$ktKualitas.="FFA ".$bar['ffa']."% MAX; ";
		}
		if($bar['mdani']!=0){
			$ktKualitas.="M&I ".$bar['mdani']."% MAX; ";
		}
		if($bar['dobi']!=0){
			$ktKualitas.="DOBI ".$bar['mdani']."% MIN";
		}*/
if ($ffaData != 0) {
    $pdf->Cell(15, 5, 'FFA', '', 0, 'L');
    $pdf->Cell(5, 5, ':', '', 0, 'L');
    $pdf->Cell(5, 5, $ffaData . ' % Max', '', 1, 'L');
}
if ($dobiData != 0) {
    $pdf->SetX(64);
    $pdf->Cell(15, 5, 'Dobi', '', 0, 'L');
    $pdf->Cell(5, 5, ':', '', 0, 'L');
    $pdf->Cell(5, 5, $dobiData . ' Min', '', 1, 'L');
}
if ($mdaniData != 0) {
    $pdf->SetX(64);
    $pdf->Cell(15, 5, 'M & I', '', 0, 'L');
    $pdf->Cell(5, 5, ':', '', 0, 'L');
    $pdf->Cell(5, 5, $mdaniData . ' % Max', '', 1, 'L');
}
if ($moistData != 0) {
    $pdf->SetX(64);
    $pdf->Cell(15, 5, 'Moisture', '', 0, 'L');
    $pdf->Cell(5, 5, ':', '', 0, 'L');
    $pdf->Cell(5, 5, $moistData . ' % Max', '', 1, 'L');
Exemplo n.º 23
0
<?php

define('FPDF_FONTPATH', 'font/');
require_once 'mysql_table.php';
include "comunes.php";
include "../conectar.php";
$pdf = new PDF();
$pdf->Open();
$pdf->AddPage();
//Nombre del Listado
$pdf->SetFillColor(255, 255, 255);
$pdf->SetFont('Arial', 'B', 16);
$pdf->SetY(40);
$pdf->SetX(0);
$pdf->MultiCell(290, 6, "Listado de Cobradores", 0, C, 0);
$pdf->Ln();
//Restauracin de colores y fuentes
$pdf->SetFillColor(224, 235, 255);
$pdf->SetTextColor(0);
$pdf->SetFont('Arial', 'B', 7);
//Buscamos y listamos las familias
$nombreentidad = $_POST["nombrecobrador"];
$codentidad = $_POST["codcobrador"];
$where = "1=1";
if ($codcobrador != "") {
    $where .= " AND codcobrador='{$codcobrador}'";
}
if ($nombrecobrador != "") {
    $where .= " AND nombrecobrador like '%" . $nombrecobrador . "%'";
}
$where2 .= " ORDER BY nombrecobrador ASC";
Exemplo n.º 24
0
     $perjabatanhrd = '';
     $perbagianhrd = '';
     $pernamahrd = '';
     $strf = "select a.bagian,b.namajabatan,a.namakaryawan from " . $dbname . ".datakaryawan a left join\r\n\t       " . $dbname . ".sdm_5jabatan b on a.kodejabatan=b.kodejabatan\r\n\t\t   where karyawanid=" . $hrd;
     $resf = mysql_query($strf);
     while ($barf = mysql_fetch_object($resf)) {
         $perjabatanhrd = $barf->namajabatan;
         $perbagianhrd = $barf->bagian;
         $pernamahrd = $barf->namakaryawan;
     }
 }
 $pdf = new PDF('P', 'mm', 'A4');
 $pdf->SetFont('Arial', 'B', 14);
 $pdf->AddPage();
 $pdf->SetY(40);
 $pdf->SetX(20);
 $pdf->SetFillColor(255, 255, 255);
 $pdf->Cell(175, 5, strtoupper($_SESSION['lang']['ijin'] . "/" . $_SESSION['lang']['cuti']), 0, 1, 'C');
 $pdf->SetX(20);
 $pdf->SetFont('Arial', '', 8);
 //$pdf->Cell(175,5,'NO : '.$notransaksi,0,1,'C');
 $pdf->Ln();
 $pdf->Ln();
 $pdf->Ln();
 $pdf->SetX(20);
 $pdf->Cell(30, 5, $_SESSION['lang']['tanggal'], 0, 0, 'L');
 $pdf->Cell(50, 5, " : " . $tgl, 0, 1, 'L');
 $pdf->SetX(20);
 $pdf->Cell(30, 5, $_SESSION['lang']['nokaryawan'], 0, 0, 'L');
 $pdf->Cell(50, 5, " : " . $karyawanid, 0, 1, 'L');
 $pdf->SetX(20);
    }
    function Footer()
    {
        $this->SetY(-15);
        $this->SetFont('Arial', 'I', 8);
        $this->Cell(0, 10, 'Pag. ' . $this->PageNo() . '/{nb}', 0, 0, 'C');
    }
}
$pdf = new PDF('P', 'mm', 'a4');
$pdf->AddPage();
$pdf->SetMargins(0, 0, 0, 0);
$pdf->AliasNbPages();
$pdf->AddFont('Amble-Regular', '', 'Amble-Regular.php');
$pdf->SetFont('Amble-Regular', '', 10);
$pdf->SetFont('Arial', 'B', 9);
$pdf->SetX(5);
$pdf->SetFont('Amble-Regular', '', 9);
$total = 0;
$sub = 0;
$repetido = 0;
$contador = 0;
$consulta = pg_query("select id_cliente,identificacion,nombres_cli,telefono,direccion_cli from clientes");
while ($row = pg_fetch_row($consulta)) {
    $repetido = 0;
    $total = 0;
    $sql1 = pg_query("select id_factura_venta,num_factura,num_autorizacion,fecha_autorizacion,fecha_caducidad FROM factura_venta where id_cliente='{$row['0']}' and estado='Activo' and fecha_caducidad between '{$fecha}' and '{$_GET['fin']}'");
    if (pg_num_rows($sql1)) {
        if ($repetido == 0) {
            $pdf->SetX(1);
            $pdf->SetFillColor(221, 221, 221);
            $pdf->Cell(80, 6, utf8_decode('RUC/CI: ' . $row[1]), 1, 0, 'L', 1);
Exemplo n.º 26
0
$ln = 5;
$margin = 5;
$tinggi = 275;
$y = $pdf->GetY();
$pdf->SetY($y);
$pdf->Image('../../css/images/logo_lapan.jpg', 135, 5, 30, 30, 'jpg');
$y = $pdf->GetY();
$pdf->Cell(0, 30, '', '', 1, 'L');
$oSatker = mysql_query("SELECT NAMA FROM t_satker WHERE KDUNITKERJA = '{$kdunit}' ");
$Satker = mysql_fetch_array($oSatker);
$kdeselon1 = substr($kdunit, 0, 3) . '000';
$oEselon = mysql_query("SELECT nama FROM tb_unitkerja WHERE kdunit = '{$kdeselon1}' ");
$Eselon = mysql_fetch_array($oEselon);
$w = array(0, 290);
$pdf->SetFont($font, 'B', $size + 2);
$pdf->SetX($margin + $w[0]);
$pdf->Cell($w[1], $ln, 'RENCANA AKSI DARI PENETAPAN KINERJA', '', 1, 'C');
$pdf->SetX($margin + $w[0]);
$pdf->Cell($w[1], $ln, trim(strtoupper(nm_unit($kdunit))), '', 1, 'C');
$pdf->Ln() * 2;
$w1 = array(35, 40, 18, 9, 40, 9, 40, 9, 40, 9, 40);
$pdf->SetFont($font, 'B', $size);
$pdf->SetX($margin);
$pdf->Cell($w1[0], $ln * 3, 'Sasaran Strategis', $border, 0, 'C');
$pdf->SetX($margin + $w1[0]);
$pdf->Cell($w1[1], $ln * 3, 'Indikator Kinerja', $border, 0, 'C');
$pdf->SetX($margin + $w1[0] + $w1[1]);
$pdf->Cell($w1[2], $ln * 3, 'Target', $border, 0, 'C');
$y = $pdf->GetY();
$pdf->SetXY($margin + $w1[0] + $w1[1] + $w1[2], $y);
$pdf->Cell(($w1[3] + $w1[4]) * 4, $ln, 'Rencana Aksi', $border, 0, 'C');
Exemplo n.º 27
0
frederick >>> change this; incorrect arrangement of variable
>> SEE: function setLGUinfo (line # 22)
$pdf->setLGUinfo($getlgu[0],$getprov[0],$resulta[2]);
===========================================================*/
$pdf->setLGUinfo($getprov[0], $getlgu[0], $resulta[2]);
$pdf->setYears($dateprev, $datenext, $datenextnext);
$pdf->AddPage();
$pdf->AliasNbPages();
$getnat = @mysql_query("select * from ebpls_buss_nature");
$Y_Label_position = 50;
$Y_Table_Position = 55;
//header
$dateprinted = date('Y-m-d');
$pdf->SetFont('Arial', 'B', 6);
$pdf->SetY($Y_Label_position);
$pdf->SetX(5);
$pdf->Cell(340, 5, $dateprinted, 0, 1, 'R');
$pdf->SetFont('Arial', 'B', 6);
$pdf->SetY($Y_Label_position + 10);
$pdf->SetX(5);
$pdf->Cell(100, 10, 'LINE OF BUSINESS', 1, 0, 'C');
$pdf->SetX(105);
$pdf->Cell(60, 5, $dateprev, 1, 0, 'C');
$pdf->SetX(165);
$pdf->Cell(60, 5, $datenext, 1, 0, 'C');
$pdf->SetX(225);
$pdf->Cell(60, 5, $datenextnext, 1, 0, 'C');
$pdf->SetY($Y_Label_position + 15);
$pdf->SetX(5);
$pdf->Cell(100, 5, '', 0, 0, 'C');
$pdf->SetX(105);
Exemplo n.º 28
0
$resulta = mysql_fetch_row($result);
$getlgu = @mysql_query("select city_municipality_desc from ebpls_city_municipality where city_municipality_code = '{$resulta['0']}'");
$getlgu = @mysql_fetch_row($getlgu);
$getprov = @mysql_query("select province_desc from ebpls_province where province_code = '{$resulta['1']}'");
$getprov = @mysql_fetch_row($getprov);
if ($cap_inv2 == "" || $cap_inv2 == 0) {
    $cap_inv2 = 9999999999999;
}
//$pdf=new FPDF('L','mm','Legal');
$pdf = new PDF('L', 'mm', 'Legal');
$pdf->setLGUinfo($getlgu[0], $getprov[0], '');
$pdf->AddPage();
$pdf->AliasNbPages();
$pdf->SetFont('Arial', 'B', 10);
$pdf->SetY(40);
$pdf->SetX(10);
$pdf->Cell(25, 5, '', 0, 0, 'L');
$pdf->SetX(50);
$pdf->Cell(100, 5, '', 0, 1, 'L');
$Y_Label_position = 50;
$Y_Table_Position = 55;
$pdf->SetFont('Arial', 'B', 6);
$pdf->SetY($Y_Label_position);
$pdf->SetX(5);
$pdf->Cell(25, 5, 'PERMIT #', 1, 0, 'C');
$pdf->Cell(80, 5, 'OWNER', 1, 0, 'C');
$pdf->Cell(100, 5, 'ADDRESS', 1, 0, 'C');
$pdf->Cell(50, 5, 'BOAT NAME', 1, 0, 'C');
$pdf->Cell(25, 5, '# OF CREW', 1, 0, 'C');
$pdf->Cell(25, 5, 'REGISTRATION #', 1, 0, 'C');
$pdf->Cell(25, 5, 'NATIONALITY', 1, 0, 'C');
Exemplo n.º 29
0
$pdf->Cell(40, 4, ": " . $an . " " . $norek_sup, 0, 1, 'L');
$pdf->Cell(35, 4, $_SESSION['lang']['npwp'], 0, 0, 'L');
$pdf->Cell(40, 4, ": " . $npwp_sup, 0, 1, 'L');
$pdf->Cell(35, 4, $_SESSION['lang']['kota'], 0, 0, 'L');
$pdf->Cell(40, 4, ": " . $kota, 0, 1, 'L');
//title
$pdf->SetFont('Arial', 'U', 12);
$ar = round($pdf->GetY());
$pdf->SetY($ar + 5);
$pdf->Cell(190, 5, strtoupper("Purchase Order"), 0, 1, 'C');
$pdf->SetY($ar + 12);
//no po + tanggal po
$pdf->SetFont('Arial', '', 8);
$pdf->Cell(10, 4, "", 0, 0, 'L');
$pdf->Cell(20, 4, " ", 0, 0, 'L');
$pdf->SetX(163);
$pdf->Cell(20, 4, $_SESSION['lang']['tanggal'], 0, 0, 'L');
$pdf->Cell(20, 4, ": " . $tglPo, 0, 0, 'L');
$pdf->SetY($ar + 17);
//title
$pdf->SetFont('Arial', 'B', 8);
$pdf->SetFillColor(220, 220, 220);
$pdf->Cell(8, 5, 'No', 1, 0, 'L', 1);
$pdf->Cell(12, 5, $_SESSION['lang']['kodeabs'], 1, 0, 'C', 1);
$pdf->Cell(60, 5, $_SESSION['lang']['namabarang'], 1, 0, 'C', 1);
$pdf->Cell(12, 5, $_SESSION['lang']['nopp'], 1, 0, 'C', 1);
$pdf->Cell(12, 5, $_SESSION['lang']['untukunit'], 1, 0, 'C', 1);
$pdf->Cell(15, 5, $_SESSION['lang']['jumlah'], 1, 0, 'C', 1);
$pdf->Cell(14, 5, $_SESSION['lang']['satuan'], 1, 0, 'C', 1);
$pdf->Cell(29, 5, $_SESSION['lang']['hargasatuan'], 1, 0, 'C', 1);
$pdf->Cell(26, 5, 'Total', 1, 1, 'C', 1);
$rep02Endereco = $rep02["Endereco"];
$rep02Telefones = $rep02["Telefones"];
$rep02Email = $rep02["Email"];
$rep02INSS = $rep02["INSS"];
// GERANDO O PDF:
$pdf = new PDF('P', 'mm', 'A4');
//CRIA UM NOVO ARQUIVO PDF NO TAMANHO A4
$pdf->AliasNbPages();
$pdf->AddPage();
$x = 20;
$l = 7;
//DEFINE A ALTURA DA LINHA
//Executante
$pdf->SetXY($x, 37);
// SetXY - DEFINE O X (largura) E O Y (altura) NA PÁGINA
$pdf->SetX($x);
$pdf->SetFont('Arial', '', 10);
$pdf->Cell(10, 5, '(A)', 0, 0, 'L');
$pdf->SetFont('Arial', 'B', 12);
$pdf->Cell(170, 5, 'CONTRATADO', 0, 1, 'C');
$pdf->SetX($x);
$pdf->SetFont('Arial', 'I', 10);
$pdf->Cell(10, 10, utf8_decode('(Quando se tratar de grupo, o líder do grupo)'), 0, 0, 'L');
$pdf->Ln();
$pdf->SetX($x);
$pdf->SetFont('Arial', 'B', 10);
$pdf->Cell(12, $l, 'Nome:', 0, 0, 'L');
$pdf->SetFont('Arial', '', 10);
$pdf->MultiCell(168, $l, utf8_decode($exNome));
$pdf->SetX($x);
$pdf->SetFont('Arial', 'B', 10);