$pdf->AddPage();
$pdf->SetFillColor(0, 102, 0);
////// logo
$size = "60";
$absx = (210 - $size) / 2;
$pdf->Image('../image/hello_cash.jpg', $absx, 5, $size);
///
$pdf->SetFont('Arial', 'B', 10);
$pdf->SetTextColor(0, 0, 0);
$pdf->Cell(0, 10, '', 0, 1);
$pdf->Cell(0, 10, '', 0, 1);
// empty space
$pdf->Cell(0, 5, '', 0, 1);
$pdf->Cell(0, 10, 'Shop No. 441, Orchard Point, Mirpur Road, Dhanmondi-7, Dhaka.', 0, 1, "C");
$pdf->Cell(0, 0, 'Cell: +8801977677776, +8801717050090', 0, 1, "C");
$pdf->Image('../image/fblogo.png', $pdf->GetX() + 60, $pdf->GetY() + 2, 5);
$pdf->Cell(0, 10, 'www.facebook.com/Helloelectronix', 0, 1, "C");
$pdf->Cell(0, 0, '', 0, 1);
// empty space
$pdf->SetTextColor(0, 0, 100);
$pdf->SetFont('Arial', 'B', 14);
$pdf->WriteHTML('<p><b>Bill To :</b></p><br>');
$pdf->SetFont('Arial', 'B', 14);
$pdf->Cell(0, 0, 'Invoice', 0, 1, "R");
$pdf->SetTextColor(0, 0, 0);
$pdf->SetFont('Arial', '', 12);
$pdf->WriteHTML($customer_name . '<br>Phone : ' . $customer_phone . '<br>');
$pdf->Cell(0, 0, 'Date : ' . $current_date, 0, 1, "R");
$pdf->Cell(0, 10, '', 0, 1);
// empty space
$pdf->SetFont('Arial', 'B', 12);
Beispiel #2
0
        $pdf->SetFont('Arial', '', 14);
        $pdf->SetXY(0, 0);
        $pdf->SetFillColor(200, 220, 255);
        $pdf->Rect(0, 0, 90, 210, 'F');
        //Borda esquerda com simbolos da PROCEV - REMOVER DEPOIS
        $pdf->SetFillColor(195, 195, 195);
        $pdf->Rect(90, 0, 207, 50, 'F');
        //Texto superior - REMOVER DEPOIS
        $pdf->SetFillColor(195, 195, 195);
        $pdf->Rect(90, 160, 207, 50, 'F');
        //Texto inferior - REMOVER DEPOIS
        $pdf->SetXY(110, 70);
        //Posicao inicial do texto do certificado -- posicao x = 110mm / posicao y = 70mm
        //$txt = file_get_contents('fpdf/license.txt');
        /*$texto = "EVENTO: ".$_POST['evento']."\nDepartamento :".$_POST['departamento']."\nPeriodo :".$_POST['periodo'].
          "\nParticipante :".$value;*/
        $texto = utf8_decode("                         " . "Certifi<B>ca</B>mos que " . $participante . " participou do evento " . $_POST['evento'] . " realizado pelo " . $_POST['departamento'] . " no periodo " . $_POST['periodo'] . " com carga horaria de " . $_POST['carga'] . " horas.");
        $pdf->MultiCell(167, 9, $texto, 0, 'J', false);
        //Adiciona o texto no corpo principal do certificado
        //$pdf->WriteHTML($texto);
        $pdf->SetXY(110, $pdf->GetY() + 10);
        $pdf->Cell(167, 5, "Cuiabá-MT, " . $_POST['dataimpressa'] . ".", 0, 1, 'R', false);
        //Adiciona a data da impressão no corpo do certificado
        $pdf->AddPage();
        $pdf->SetXY(15, 25);
        $pdf->MultiCell(128, 5, $_POST['contprogramatico'], 0, 'C', false);
        $pdf->SetXY(154, 25);
        $pdf->MultiCell(128, 5, $_POST['equipe'], 0, 'C', false);
    }
    $pdf->Output("PaginaPDF", "I");
}