Example #1
3
 public function generarFolleto()
 {
     $concursos = $this->concursoMapper->findConcurso("pinchosOurense");
     $establecimientos = $this->establecimientoMapper->findAllValidados();
     $pinchos = $this->pincho->all();
     $pdf = new FPDF();
     $pdf->AddPage();
     $pdf->SetFont('Arial', 'B', 30);
     $pdf->SetTextColor(85, 53, 20);
     $pos_y = 10;
     $pdf->Cell(0, 24, $concursos->getNombre(), 0, 0, "L");
     $pdf->Ln();
     $pdf->SetFont('Arial', '', 16);
     $pdf->SetTextColor(0, 0, 0);
     $pdf->MultiCell(0, 6, $concursos->getDescripcionConcurso(), 0, "L");
     $pdf->SetTextColor(85, 53, 20);
     $pdf->SetFont('Arial', 'B', 13);
     $pdf->Cell(0, 24, "Establecimientos participantes", 0, 0, "L");
     foreach ($establecimientos as $establecimiento) {
         $pdf->Ln();
         $pdf->SetFont('Arial', 'B', 13);
         $pdf->SetTextColor(85, 53, 20);
         $pdf->SetFillColor(182, 145, 107);
         $pdf->Cell(0, 10, utf8_decode($establecimiento->getNombre()), 1, 0, "C", "false");
         $pdf->Ln();
         $pdf->SetFont('Arial', 'I', 13);
         $pdf->SetTextColor(0, 0, 0);
         $pdf->Cell(0, 10, utf8_decode($establecimiento->getDescripcion()), 0, 0, "L");
         $pdf->Ln();
         $pdf->Cell(0, 10, utf8_decode($establecimiento->getLocalizacion()), 0, 0, "L");
         $pdf->Ln();
         $pdf->Cell(0, 10, utf8_decode("Pincho:"), 0, 0, "L");
         foreach ($pinchos as $pincho) {
             if ($pincho->getEstablecimiento() == $establecimiento->getId()) {
                 $pdf->Ln();
                 $pdf->Cell(5);
                 $pdf->Cell(0, 10, utf8_decode($pincho->getNombre()), 0, 0, "L");
                 $pdf->Ln();
                 $pdf->Cell(5);
                 $pdf->Cell(0, 10, utf8_decode($pincho->getDescripcion()), 0, 0, "L");
                 $pdf->Ln();
                 $pdf->Cell(5);
                 if ($pincho->isCeliaco()) {
                     $pdf->Cell(0, 10, utf8_decode("Apto para celiaco"), 0, 0, "L");
                 } else {
                     $pdf->Cell(0, 10, utf8_decode("No apto para celiaco"), 0, 0, "L");
                 }
             }
         }
         $pdf->Ln(5);
     }
     $pdf->Output("folleto.pdf", "D");
 }
Example #2
0
 function SetFillColor($r, $g = -1, $b = -1)
 {
     if (is_string($r)) {
         $this->HTML2RGB($r, $r, $g, $b);
     }
     parent::SetFillColor($r, $g, $b);
 }
Example #3
0
 public function execute()
 {
     $pdf = new FPDF();
     $pdf->AddPage();
     $pdf->SetFont("helvetica", "B", 16);
     $pdf->Cell(0, 10, "Hello world!", 0, 1);
     $pdf->Ln();
     $pdf->SetFont("helvetica", "", 12);
     $pdf->SetFillColor(192, 192, 192);
     $pdf->Cell(40, 10, "Back", 1, 0, "C", 1);
     $pdf->Link(10, 30, 40, 10, "/demos");
     $pdf->Output();
     $this->output->disable();
 }
 /**
  * Sets up a new PDF object with the necessary settings
  *
  * @return  FPDF            A new PDF object
  */
 protected function initialize_pdf()
 {
     global $CFG;
     require_once $CFG->libdir . '/fpdf/fpdf.php';
     $newpdf = new FPDF('L', 'in', 'letter');
     $newpdf->setMargins(self::marginx, self::marginy);
     $newpdf->SetFont('Arial', '', 9);
     $newpdf->AddPage();
     $newpdf->SetFont('Arial', '', 16);
     $newpdf->MultiCell(0, 0.2, $this->report->title, 0, 'C');
     $newpdf->Ln(0.2);
     $newpdf->SetFont('Arial', '', 8);
     $newpdf->SetFillColor(225, 225, 225);
     return $newpdf;
 }
Example #5
0
 public function fee_month()
 {
     $date_from = $this->input->get("date_from");
     $date_to = $this->input->get("date_to");
     $event = $this->input->get("event");
     require_once "../assets/fpdf/fpdf.php";
     $pdf = new FPDF();
     $pdf->AliasNbPages();
     $pdf->AddPage('L', 'A4');
     //title
     $pdf->SetFont('Arial', 'B', 16);
     $pdf->Cell(0, 10, 'Report Absensi Moderasi HM Sampoerna', 0, 0, 'C');
     $pdf->Ln(10);
     $pdf->SetFont('Arial', '', 10);
     $pdf->Cell(0, 5, 'Periode Tanggal : ' . $date_from . ' s/d ' . $date_to, 0, 0, 'C');
     $pdf->Ln(5);
     $pdf->Cell(0, 5, 'Event : ' . $this->event_model->get_event_name($this->input->get("event")), 0, 0, 'L');
     $pdf->Ln(10);
     //header
     $pdf->SetFont('Arial', 'B', 8);
     $pdf->SetDrawColor(0, 0, 0);
     $pdf->SetTextColor(0, 0, 0);
     $pdf->Cell(10, 14, 'No', 1, 0, 'C');
     $pdf->Cell(40, 14, 'Moderator', 1, 0, 'C');
     $from = date_create(format_ymd($date_from));
     $to = date_create(format_ymd($date_to));
     $j = 0;
     while ($from <= $to) {
         $pdf->SetXY(60 + $j, 35);
         $pdf->Cell(6, 7, date_format($from, "d"), 1, 0, 'C');
         $pdf->SetXY(60 + $j, 42);
         $pdf->Cell(6, 7, date_format($from, "m"), 1, 0, 'C');
         date_add($from, date_interval_create_from_date_string('1 days'));
         $j += 6;
     }
     $pdf->SetXY($j + 60, 35);
     $pdf->Cell(0, 14, 'Jumlah', 1, 0, 'C');
     $pdf->Ln(14);
     //rows
     $pdf->SetFont('Arial', '', 8);
     $pdf->SetDrawColor(0, 0, 0);
     $pdf->SetTextColor(0, 0, 0);
     $result = $this->user_event_model->get_user_month()->result();
     $total = 0;
     $i = 1;
     $j = 0;
     foreach ($result as $r) {
         $pdf->Cell(10, 7, $i++, 1, 0, 'C');
         $pdf->Cell(40, 7, $r->user, 1, 0, 'L');
         $from = date_create(format_ymd($date_from));
         $to = date_create(format_ymd($date_to));
         $j = 0;
         $jum = 0;
         while ($from <= $to) {
             $jumlah = $this->absent_model->check_exist_month($r->user_kode, $event, date_format($from, 'Y-m-d'));
             $pdf->Cell(6, 7, number_format($jumlah), 1, 0, 'C');
             $jum += $jumlah;
             date_add($from, date_interval_create_from_date_string('1 days'));
             $j++;
         }
         $pdf->Cell(0, 7, number_format($jum), 1, 0, 'C');
         $total += $jum;
         $pdf->Ln(7);
     }
     $pdf->SetFillColor(240, 240, 240);
     $pdf->SetFont('Arial', 'B', 8);
     $pdf->Cell(50 + 6 * $j, 7, 'Total : ', 1, 0, 'R', true);
     $pdf->Cell(0, 7, number_format($total), 1, 0, 'C', true);
     $pdf->SetFont('Arial', '', 10);
     $this->_footer($pdf);
     $pdf->Output("Fee Moderasi HM Sampoerna", "I");
 }
Example #6
0
//fungsi mengatur text area font
$pdf->SetFont('Arial', 'B', 8);
$pdf->Text(140, 50, "Tahun Ajaran");
$pdf->Text(165, 50, " : " . $tampilHasil['ta']);
$pdf->Text(15, 50, "NIS");
$pdf->Text(40, 50, " : " . $tampilHasil['nis']);
$pdf->Text(15, 55, "Nama Siswa");
$pdf->Text(40, 55, " : " . $tampilHasil['nama_siswa']);
$pdf->Text(140, 55, "Semester");
$pdf->Text(165, 55, " : " . $tampilHasil['semester']);
//fungsi mengatur dan posisi table x dan y
$pdf->SetXY(15, 60);
$pdf->AliasNbPages();
// function untuk menampilkan tabel
//membuat header tabel set color
$pdf->SetFillColor(50, 50, 50);
$pdf->SetTextColor(255, 255, 255);
$pdf->Cell(10, 5, "No.", 1, 0, 'C', true);
$pdf->Cell(40, 5, "Kode Mapel", 1, 0, 'C', true);
$pdf->Cell(40, 5, "Mata Pelajaran", 1, 0, 'C', true);
$pdf->Cell(20, 5, "Kelas", 1, 0, 'C', true);
$pdf->Cell(30, 5, "Nilai Akhir", 1, 0, 'C', true);
$pdf->Cell(30, 5, "Predikat (NA)", 1, 0, 'C', true);
$pdf->SetFillColor(255, 255, 255);
$pdf->SetTextColor(0, 0, 0);
//membuat halaman
$no = 1;
//fungsi mengatur dan posisi table x dan y
$pdf->SetXY(15, 65);
//membuat baris tabel
while (list($kd_mapel, $mapel, $kelas, $nilai) = mysql_fetch_row($hasilnya2)) {
$pdf->Cell(55, 5, utf8_decode('Pago con Tarjeta o ACH'), 1, 0, 'C');
$pdf->Cell(99, 5, utf8_decode('Hasta 10 pagos iguales mensuales'), 1, 0, 'C');
$pdf->Cell(35, 5, utf8_decode("B/. " . number_format($pago_ACH, "2", ".", ",") . ""), 1, 1, 'C');
$pdf->Ln(5);
$pdf->SetTextColor(0, 102, 204);
$pdf->Cell(40, 5, utf8_decode('Beneficios incluidos'), 1, 1, 'L');
$pdf->SetTextColor(0, 0, 0);
$pdf->SetFont('Arial', '', 6);
while ($counter_coberturas > 0) {
    // $pdf->Cell(63,3,utf8_decode($cobertura_especial[$counter_coberturas-1]),0,1,'L');
    $pdf->Cell(63, 3, $cobertura_especial[$counter_coberturas - 1], 0, 1, 'L');
    $counter_coberturas = $counter_coberturas - 1;
}
$pdf->SetFont('Arial', 'B', 10);
$pdf->Ln(3);
$pdf->SetFillColor(255, 0, 0);
$pdf->Cell(189, 5, "ESTA COTIZACION ES VALIDA POR 7 DIAS", 1, 1, 'C', true);
$pdf->SetTextColor(0, 0, 0);
$pdf->Cell(189, 5, utf8_decode('Esta cotización está sujeta a la inspección del automóvil y'), 0, 1, 'C');
$pdf->Cell(189, 5, utf8_decode('verificación de historial de tránsito del contratante o asegurado.'), 0, 1, 'C');
$pdf->Ln(2);
$pdf->Cell(189, 5, utf8_decode('Para la pronta emisión de su póliza necesitamos nos presente los siguiente documentos:'), 0, 1, 'C');
$pdf->Cell(189, 5, utf8_decode('1. Formulario Conozca su cliente'), 1, 1, 'L');
$pdf->Cell(189, 5, utf8_decode('2. Fotocopia de Cédula del Asegurado y Contratante'), 1, 1, 'L');
$pdf->Cell(189, 5, utf8_decode('3. Solicitud de Póliza (Será entregada a usted por un ejecutivo nuestro)'), 1, 1, 'L');
$pdf->Cell(189, 5, utf8_decode('4. Formulario de descuento (Será entregada a usted por un ejecutivo nuestro)'), 1, 1, 'L');
$pdf->Ln(3);
$pdf->Cell(189, 5, utf8_decode('Llámenos al: 227-7777'), 0, 1, 'L');
$pdf->Cell(189, 5, utf8_decode('Escríbanos a: info@seguroteconviene.com'), 0, 1, 'L');
//$pdf->Output('solicitudes/'.$solicitud.'.pdf', 'D');
$doc = $pdf->Output('solicitudes/' . $solicitud . '.pdf', 'S');
while ($row = mysql_fetch_assoc($sql)) {
    array_push($data, $row);
}
#setting judul laporan dan header tabel
$judul = "Rekap Pembayaran";
$header = array(array("label" => "ID Transaksi", "length" => 30, "align" => "L"), array("label" => "ID Barang", "length" => 30, "align" => "L"), array("label" => "Tanggal", "length" => 30, "align" => "L"), array("label" => "Quantity", "length" => 30, "align" => "L"), array("label" => "Harga", "length" => 30, "align" => "L"), array("label" => "Subtotal", "length" => 30, "align" => "L"));
#sertakan library FPDF dan bentuk objek
require_once "assets/fpdf/fpdf.php";
$pdf = new FPDF();
$pdf->AddPage();
#tampilkan judul laporan
$pdf->SetFont('Arial', 'B', '16');
$pdf->Cell(0, 20, $judul, '0', 1, 'C');
#buat header tabel
$pdf->SetFont('Arial', '', '10');
$pdf->SetFillColor(355, 0, 0);
$pdf->SetTextColor(255);
$pdf->SetDrawColor(128, 0, 0);
foreach ($header as $kolom) {
    $pdf->Cell($kolom['length'], 5, $kolom['label'], 1, '0', $kolom['align'], true);
}
$pdf->Ln();
#tampilkan data tabelnya
$pdf->SetFillColor(224, 235, 255);
$pdf->SetTextColor(0);
$pdf->SetFont('');
$fill = false;
foreach ($data as $baris) {
    $i = 0;
    foreach ($baris as $cell) {
        $pdf->Cell($header[$i]['length'], 5, $cell, 1, '0', $kolom['align'], $fill);
include 'Models/class.Denuncia.php';
include 'Models/class.DenunciaDAO.php';
include '../mod_ciudadanos/Models/class_fisc_ciudadano.php';
include '../mod_ciudadanos/Models/class_fisc_ciudadanoDAO.php';
$pdf = new FPDF('P');
$pdf->AddPage();
$pdf->Image('../../public_html/imagenes/logoclaro.png', 40, 50, 120);
$pdf->SetTitle("Notificación al denunciante", true);
$pdf->Image('../../public_html/imagenes/logoivss.png', 20, 7, 13);
$pdf->SetFont('Arial', '', 6);
$pdf->Text(40, 10, utf8_decode('REPÚBLICA BOLIVARIANA DE VENEZUELA'));
$pdf->Text(40, 13, utf8_decode('MINISTERIO DEL PODER POPULAR PARA EL TRABAJO Y SEGURIDAD SOCIAL'));
$pdf->Text(40, 16, utf8_decode('INSTITUTO VENEZOLANO DE LOS SEGUROS SOCIALES'));
$pdf->Text(40, 19, utf8_decode('DIRECCIÓN GENERAL DE FISCALIZACIÓN'));
$pdf->SetXY(20, 26);
$pdf->SetFillColor(35, 65, 129);
$pdf->SetFont('Arial', 'B', 8);
$pdf->setTextColor(255, 255, 255);
$pdf->Cell(50, 6, utf8_decode('N° DE QUEJAS Y/O RECLAMOS'), 1, 0, 'C', TRUE);
$pdf->SetXY(20, 32);
$pdf->Cell(50, 6, '', 1, 0, 'C', FALSE);
$pdf->setTextColor(0, 0, 0);
$pdf->SetFont('Arial', 'B', 8);
$pdf->Text(60, 50, utf8_decode('COMPROBANTE DE RECEPCIÓN DE QUEJA Y/O RECLAMO'));
$pdf->SetXY(20, 52);
$pdf->SetFont('Arial', 'B', 8);
$pdf->setTextColor(255, 255, 255);
$pdf->Cell(50, 6, utf8_decode('FECHA DE PRESENTACIÓN'), 1, 0, 'C', TRUE);
$pdf->Cell(35, 6, '', 1, 0, 'C', FALSE);
$pdf->Cell(50, 6, utf8_decode('HORA DE PRESENTACIÓN'), 1, 0, 'C', TRUE);
$pdf->Cell(35, 6, '', 1, 0, 'C', FALSE);
Example #10
0
 /** Get the list of categories for this class **/
 /** NOW LOOP OVER THE ARRAY OF STUDENTS **/
 /** THE FOLLOWING SHOULD BE REPEATED FOR EACH STUDENT **/
 if (count($reports)) {
     foreach ($reports as $id => $report) {
         $teacherName = $report['classInfo']['first_name'] . " " . $report['classInfo']['last_name'];
         $rcv = 0;
         /** used for row shading **/
         $pdf->AddPage('P');
         $pdf->SetMargins($lm, $tm);
         //$pdf->SetTitle($className."_".$termName."_".$sname."_ProgressReport.pdf");
         /** START BUILDING THE PAGE **/
         /** First the heading **/
         $y_coord = $tm;
         $x_coord = $lm;
         $pdf->SetFillColor(255, 255, 255);
         /** Page Title **/
         $pdf->SetTextColor(51, 102, 102);
         $pdf->SetFont('Times', 'B', $titlefs);
         $pdf->SetXY($x_coord, $y_coord);
         $title = $pdf->Cell($headingw, $titleh, 'Questar III Student Progress Report', 0, 1, 'C', 0);
         $y_coord += $titleh;
         $pdf->SetTextColor(0, 0, 0);
         $pdf->SetFont('Times', 'B', $colheadingfs);
         $pdf->SetXY($x_coord, $y_coord);
         $pdf->Cell($headingw, 0.4, $report['studentName'], 0, 2, 'L', 0);
         $pdf->Cell($headingw, 0.4, $report['classInfo']['course_name'] . ' ~ ' . $teacherName, 0, 2, 'L', 0);
         $pdf->Cell($headingw, 0.4, "School Year " . $schoolYear . " ~ " . $report['classInfo']['term_name'], 0, 2, 'L', 0);
         $pdf->Cell($headingw, 0.4, "Printed on " . $currentDate, 0, 2, 'L', 0);
         /** SUMMARY SECTION **/
         $y_coord = $tm + $titleh;
Example #11
0
$pdf = new FPDF();
$pdf->AddPage();
$pdf->SetFont("Helvetica", "B", 22);
$pdf->Cell(0, 20, "Certificate", "B", 1, "C");
$pdf->Ln();
$pdf->SetFont("Helvetica", "B", 16);
$pdf->Cell(0, 20, "OF PHP Knowledge", "I", 0, "C");
$pdf->Ln();
$pdf->Cell(0, 20, "Issued to VitoshAcademy.Com", "I", 0, "C");
$pdf->Ln();
$pdf->Cell(0, 20, "By VitoshAcademy.Com", "I", 0, "C");
$pdf->Ln();
$pdf->SetFont("Helvetica", "B", 11);
$pdf->SetDrawColor(255, 0, 255);
$pdf->SetLineWidth(0.1);
$pdf->SetFillColor(192, 192, 192);
$pdf->SetTextColor(255, 0, 0);
$pdf->Cell(25, 5, "N", "LTR", 0, "C", 1);
$pdf->Cell(25.1, 5, "N * 11", "LTR", 0, "C", 1);
$pdf->Cell(25.2, 5, "N * 13", "LTR", 0, "C", 1);
$pdf->Cell(25.3, 5, "N * 17", "LTR", 0, "C", 1);
$pdf->Cell(25.4, 5, "N * 19", "LTR", 0, "C", 1);
$pdf->Cell(25.5, 5, "N * 23", "LTR", 0, "C", 1);
$pdf->Cell(25.6, 5, "N * 31", "LTR", 0, "C", 1);
$pdf->Ln();
$bool_draw = True;
for ($w = 7; $w <= 50; $w = $w + 7) {
    if ($bool_draw == True) {
        $pdf->SetFillColor(105, 110, 115);
        $pdf->SetTextColor(1, 300, 1);
        $bool_draw = False;
Example #12
0
 public function SetFillColor($r, $g = null, $b = null)
 {
     $c = $this->parseColours($r, $g, $b);
     return parent::SetFillColor($c["red"], $c["green"], $c["blue"]);
 }
Example #13
0
while ($row = oci_fetch_assoc($query)) {
    array_push($data, $row);
}
#setting judul laporan dan header tabel
$judul = "DATA LAPORAN KEUANGAN BULANAN";
$header = array(array("label" => "ID Transaksi", "length" => 30, "align" => "C"), array("label" => "ID Tempat", "length" => 30, "align" => "C"), array("label" => "Tanggal", "length" => 30, "align" => "C"), array("label" => "Nama Menu", "length" => 50, "align" => "C"), array("label" => "Harga", "length" => 25, "align" => "C"));
#sertakan library FPDF dan bentuk objek
require_once "fpdf.php";
$pdf = new FPDF();
$pdf->AddPage();
#tampilkan judul laporan
$pdf->SetFont('Arial', 'B', '16');
$pdf->Cell(0, 20, $judul, '0', 1, 'C');
#buat header tabel
$pdf->SetFont('Arial', '', '10');
$pdf->SetFillColor(0, 128, 128);
$pdf->SetTextColor(255);
$pdf->SetDrawColor(128, 0, 0);
foreach ($header as $kolom) {
    $pdf->Cell($kolom['length'], 9, $kolom['label'], 1, '0', $kolom['align'], true);
}
$pdf->Ln();
#tampilkan data tabelnya
$pdf->SetFillColor(224, 235, 255);
$pdf->SetTextColor(0);
$pdf->SetFont('');
$fill = false;
foreach ($data as $baris) {
    $i = 0;
    foreach ($baris as $cell) {
        $pdf->Cell($header[$i]['length'], 9, $cell, 1, '0', $kolom['align'], $fill);
				{

					// nom du creneau sur lequelle nous travaillons actuellement
					$nom_creneau = $creneaux[$k];

					if ( !empty($tab_donnee_sup[$nb_ligne_passe][$nom_creneau]['A']) and $tab_donnee_sup[$nb_ligne_passe][$nom_creneau]['A'] === '1' and empty($tab_donnee_sup[$nb_ligne_passe][$nom_creneau]['R']))
					{

						// si la couleur à était demandé alors on l'initialise
						if ( $couleur_fond === '1' )
						{

							// couleur de caractère
							$pdf->SetTextColor(255, 0, 0);
							// couleur du fond de cellule
							$pdf->SetFillColor(255, 223, 223);

						}

						// construction de la cellule du tableau
						$pdf->Cell($largeur_1_creneau, $hau_donnee, 'A', 1, 0, 'C', $couleur_fond);

						// remise de la couleur du caractère à noir
						$pdf->SetTextColor(0, 0, 0);

					}
					elseif ( !empty($tab_donnee_sup[$nb_ligne_passe][$nom_creneau]['R']) and $tab_donnee_sup[$nb_ligne_passe][$nom_creneau]['R'] === '1'  and empty($tab_donnee_sup[$nb_ligne_passe][$nom_creneau]['A']) )
					{

						// si la couleur à était demandé alors on l'initialise
						if ( $couleur_fond === '1' )
Example #15
0
 $cat_names_array = array();
 /** holds the names of the categories for this class **/
 $sql = "SELECT * from categories where class_id=" . $class_id;
 $result = $db->query($sql);
 $catcount = $result->num_rows;
 while ($row = $result->fetch_assoc()) {
     $cat_names_array[$row['category_name']] = $row['category_weight'];
 }
 $catcount = count($cat_names_array);
 if ($catcount) {
     $y_coord = $tm;
     $x_coord = $lm;
     $pdf->AddPage('P');
     //print "Adding Page ".$page++."<br>";
     $pdf->SetMargins($lm, $tm, 8.5);
     $pdf->SetFillColor(204, 204, 204);
     /** black **/
     $pdf->SetTextColor(0, 0, 0);
     $pdf->SetXY($x_coord, $y_coord);
     /** Display a Page Title **/
     $pageTitle = "Class Summary for " . $termName . " - " . $class_name . " - " . $teacherName;
     $pdf->SetFont('Times', 'B', $titlefs);
     $pdf->Cell($pw, $titleh, $pageTitle, 0, 1, 'C', 1);
     $y_coord += $titleh;
     $pdf->SetXY($x_coord, $y_coord);
     $pdf->SetFont('Times', 'B', $catfs);
     $numCats = count($cat_names_array);
     $overallavw = 1.0;
     $studentw = 2.0;
     $rightleft = $overallavw + $studentw;
     $catw = ($pw - ($overallavw + $studentw)) / $numCats;
Example #16
0
    $row['gender'] = $gender[$row['gender']];
    array_push($data, $row);
}
//setting judul laporan dan header tabel
$judul = "LAPORAN DATA MAHASISWA";
$header = array(array("label" => "No. Pegawai", "length" => 30, "align" => "L"), array("label" => "Nama", "length" => 50, "align" => "L"), array("label" => "Email", "length" => 40, "align" => "L"), array("label" => "Telepon", "length" => 30, "align" => "L"), array("label" => "Jenis Kelamin", "length" => 30, "align" => "L"));
//sertakan library FPDF dan bentuk objek
require_once "fpdf/fpdf.php";
$pdf = new FPDF();
$pdf->AddPage();
//tampilkan judul laporan
$pdf->SetFont('Arial', 'B', '16');
$pdf->Cell(0, 20, $judul, '0', 1, 'C');
//buat header tabel
$pdf->SetFont('Arial', '', '10');
$pdf->SetFillColor(11, 11, 11);
$pdf->SetTextColor(255);
$pdf->SetDrawColor(11, 11, 11);
foreach ($header as $kolom) {
    $pdf->Cell($kolom['length'], 5, $kolom['label'], 1, '0', $kolom['align'], true);
}
$pdf->Ln();
//tampilkan data tabelnya
$pdf->SetFillColor(224, 235, 255);
$pdf->SetTextColor(0);
$pdf->SetFont('');
$fill = false;
foreach ($data as $baris) {
    $i = 0;
    foreach ($baris as $cell) {
        $pdf->Cell($header[$i]['length'], 5, $cell, 1, '0', $kolom['align'], $fill);
Example #17
0
mysql_select_db("registrasi");
$kueri = mysql_query('set @row_num = 0');
$sql = mysql_query("SELECT @row_num := @row_num + 1 as id ,kehadiran.nak,nama,nik,status,no_kupon,id_kuasa,user,waktu from kehadiran join anggota using (nak) order by id");
$data = array();
while ($row = mysql_fetch_assoc($sql)) {
    array_push($data, $row);
}
$judul = "LAPORAN KEHADIRAN";
$header = array(array("label" => "No", "length" => 10, "align" => "L"), array("label" => "NAK", "length" => 10, "align" => "L"), array("label" => "Nama", "length" => 44, "align" => "L"), array("label" => "NIK", "length" => 15, "align" => "L"), array("label" => "Status", "length" => 15, "align" => "L"), array("label" => "No Kupon", "length" => 17, "align" => "L"), array("label" => "Id Kuasa", "length" => 15, "align" => "L"), array("label" => "User", "length" => 38, "align" => "L"), array("label" => "Waktu", "length" => 31, "align" => "L"));
require_once "fpdf/fpdf.php";
$pdf = new FPDF('P', 'mm', 'A4');
$pdf->AddPage();
$pdf->SetFont('Arial', 'B', '16');
$pdf->Cell(0, 20, $judul, '0', 1, 'C');
$pdf->SetFont('Arial', '', '9');
$pdf->SetFillColor(0, 0, 0);
$pdf->SetTextColor(255);
$pdf->SetDrawColor(0, 0, 0);
foreach ($header as $kolom) {
    $pdf->Cell($kolom['length'], 5, $kolom['label'], 1, '0', $kolom['align'], true);
}
$pdf->Ln();
$pdf->SetFillColor(255, 255, 255);
$pdf->SetTextColor(0);
$pdf->SetFont('');
$fill = false;
foreach ($data as $baris) {
    $i = 0;
    foreach ($baris as $cell) {
        $pdf->Cell($header[$i]['length'], 5, $cell, 1, '0', $kolom['align'], $fill);
        $i++;
#
 
#
#tampilkan judul laporan
#
$pdf->SetFont('Arial','B','16');
#
$pdf->Cell(0,20, $judul, '0', 1, 'C');
#
 
#
#buat header tabel
#
$pdf->SetFont('Arial','','10');
#
$pdf->SetFillColor(65,65,65);
#
$pdf->SetTextColor(255);
#
$pdf->SetDrawColor(128,0,0);
#
$pdf->Cell(10, 5, 'NO', 1, '0', 'C', true); 
#
foreach ($header as $kolom) {
#
$pdf->Cell($kolom['length'], 5, $kolom['label'], 1, '0', $kolom['align'], true);
#
}
#
$pdf->Ln();
#
Example #19
0
 $_SESSION['name'] = $firstname;
 $pdf = new FPDF();
 $image12 = "done2.png";
 // Add a page to that object
 $pdf->AddPage();
 $pdf->setleftmargin(10);
 $pdf->setX(10);
 $pdf->setY(10);
 // Add some text
 $pdf->SetFont('Arial', 'B', 10);
 $text = "hello";
 // width, height, text, no border, next line - below & left margin, alignement
 // shree rang in centre
 $pdf->Cell(200, 10, '|| Shree Rang ||', 0, 1, "C");
 //create rectangle and registration form
 $pdf->SetFillColor(0, 0, 0);
 $pdf->Rect(0, 20, 210, 10, 'F');
 $pdf->SetTextColor(255, 255, 255);
 $pdf->SetFont('Arial', 'B', 15);
 $pdf->Cell(200, 10, 'REGISTRATION FORM - 2016', 0, 1, "C");
 // space below registration form
 $pdf->Cell(210, 5, '', 0, 1, "C");
 //set font and height
 $pdf->SetFont('Arial', 'B', 12);
 $pdf->SetTextColor(0, 0, 0);
 //space before form no.
 $pdf->Cell(10, 5, '', 0, 0, "C");
 $pdf->Cell(5, 5, 'FORM NO.', 0, 0, "C");
 //space between rect and form no tag
 $pdf->Cell(10, 5, '', 0, 0, "C");
 // create box for form
Example #20
0
$pdf->Cell(0, 5, 'RUMAH SAKIT BERSALIN "BUAH DELIMA" ', 0, 1, 'C');
$pdf->Cell(0, 5, 'IKATAN BIDAN INDONESIA KABUPATEN SIDOARJO ', 0, 1, 'C');
$pdf->SetFont('Arial', '', '10');
$pdf->Cell(0, 5, 'Jl. Sunandar Priyo Sudarmo No.154 Telp. (031) 8056911', 0, 1, 'C');
$pdf->Cell(0, 5, 'Sidoarjo - Jawa Timur - Indonesia', 0, 1, 'C');
$pdf->Image('../_pwi/_assets_cetak_pdf/rsbbd_01.jpg', 58, 12, 25, 25);
// tampil garis line
$pdf->Line(45, 38, 250, 38);
$pdf->Line(45, 39, 250, 39);
$pdf->Ln();
$pdf->Cell(0, 5, '', 0, 1, 'C');
$pdf->Cell(0, 5, 'Laporan Ganti Jadwal Pegawai Tetap, Bulan ' . $bln . ' Tahun ' . $tahun, 0, 1, 'C');
$pdf->Ln();
$pdf->Cell(0, 5, 'Gedung Rawat Inap Dan UGD', 0, 1, 'C');
$pdf->Ln();
$pdf->SetFillColor(224, 235, 255);
$pdf->SetTextColor(0);
$pdf->Cell(1, 7, '', '', 0, 'L');
#buat header tabel
foreach ($tabel_anggota as $kolom) {
    $pdf->Cell($kolom['length'], 7, $kolom['label'], 1, '0', $kolom['align'], true);
}
#tampilkan data tabel
$pdf->Ln();
$pdf->Cell(1, 7, '', '', 0, 'L');
$fill = false;
foreach ($data_tabel as $baris) {
    $i = 0;
    $no = 0;
    foreach ($baris as $cell) {
        $pdf->Cell($tabel_anggota[$i]['length'], 7, $cell, 1, '0', $kolom['align']);
Example #21
0
<?php

include "conexion_bd.php";
require 'fpdf/fpdf.php';
$pdf = new FPDF('L', 'mm', 'A4');
$pdf->AddPage();
$pdf->SetFont('Arial', 'B', 9);
$pdf->Cell(10, 10, 'CHOFERES', '');
$pdf->Ln();
$pdf->SetFillColor(240, 150, 20);
$pdf->Cell(12, 10, 'ID', 1, 0, 'C', True);
$pdf->Cell(19, 10, 'DNI', 1, 0, 'C', True);
$pdf->Cell(20, 10, 'Fecha Nac', 1, 0, 'C', True);
$pdf->Cell(34, 10, 'Nombre', 1, 0, 'C', True);
$pdf->Cell(28, 10, 'Apellido', 1, 0, 'C', True);
$pdf->Cell(37, 10, 'Domicilio', 1, 0, 'C', True);
$pdf->Cell(26, 10, 'Localidad', 1, 0, 'C', True);
$pdf->Cell(30, 10, 'Provincia', 1, 0, 'C', True);
$pdf->Cell(10, 10, 'Lic', 1, 0, 'C', True);
$pdf->Cell(22, 10, 'Telefono', 1, 0, 'C', True);
$pdf->Cell(14, 10, 'Id_Rol', 1, 0, 'C', True);
$pdf->Cell(30, 10, 'usuario', 1, 0, 'C', True);
$pdf->Ln();
$cadena = "SELECT * FROM empleado WHERE id_cargo= 1";
$tabla = mysql_query($cadena);
while ($registro = mysql_fetch_array($tabla)) {
    $pdf->Cell(12, 10, $registro['id'], 1);
    $pdf->Cell(19, 10, $registro['dni'], 1);
    $pdf->Cell(20, 10, $registro['fecha_nac'], 1);
    $pdf->Cell(34, 10, $registro['nombre'], 1);
    $pdf->Cell(28, 10, $registro['apellido'], 1);
// Author : SIAKAD TEAM
// Email  : setio.dewo@gmail.com
// Start  : 20 Oktober 2008
session_start();
include_once "../dwo.lib.php";
include_once "../db.mysql.php";
include_once "../connectdb.php";
include_once "../parameter.php";
include_once "../cekparam.php";
include_once "../fpdf.php";
// *** Parameters ***
$MKPaketID = GetSetVar('MKPaketID');
$pdf = new FPDF();
$pdf->SetTitle("Matakuliah Paket");
$pdf->AddPage();
$pdf->SetFillColor(200, 200, 200);
$pdf->SetFont('Helvetica', 'B', 14);
CetakHeadernya($MKPaketID, $pdf);
CetakMatakuliahnya($MKPaketID, $pdf);
$pdf->Output();
// *** Functions ***
function CetakHeadernya($MKPaketID, $p)
{
    $lbr = 190;
    $t = 6;
    if (empty($MKPaketID)) {
        $_pid = "(SEMUA)";
    } else {
        $_pid = GetaField('mkpaket', "MKPaketID='{$MKPaketID}' and KodeID", KodeID, 'Nama');
    }
    HeaderLogo("Daftar Mata Kuliah Paket: {$_pid}", $p, 'P');
Example #23
0
#sertakan library FPDF dan bentuk objek 
require("../include/fpdf16/fpdf.php"); 
$pdf = new FPDF(); 
$pdf->AddPage(); 
 
#tampilkan judul laporan 
$subjudul="Tanggal ".$t1." - ".$t2;
$pdf->SetFont('Courier','B','16'); 
$pdf->Cell(0,7, $judul, '0', 1, 'C'); 

$pdf->SetFont('Courier','B','12'); 
$pdf->Cell(0,20, $subjudul, '0', 1, 'C');
 
#buat header tabel 
$pdf->SetFont('Courier','','10'); 
$pdf->SetFillColor(65,65,65); 
$pdf->SetTextColor(255); 
$pdf->SetDrawColor(204,204,204);
$pdf->Cell(10, 5, 'NO', 1, '0', 
'L', true); 
foreach ($header as $kolom) { 

 $pdf->Cell($kolom['length'], 5, $kolom['label'], 1, '0', 
$kolom['align'], true); 
} 
$pdf->Ln(); 
 
#tampilkan data tabelnya 
$pdf->SetFillColor(224,235,255); 
$pdf->SetTextColor(0); 
$pdf->SetFont(''); 
Example #24
0
     $pdf->AddPage();
     //Menambahkan Gambar
     $pdf->Image('logo.png', 5, 11, -275);
     $pdf->SetFont('Arial', 'B', 13);
     $pdf->Cell(80);
     $pdf->Cell(30, 10, '', 0, 0, 'C');
     $pdf->Ln();
     $pdf->Cell(80);
     $pdf->Cell(30, 10, 'LAPORAN DENDA', 0, 0, 'C');
     $pdf->Ln();
 }
 //Fields Name position
 $Y_Fields_Name_position = 30;
 //First create each Field Name
 //Gray color filling each Field Name box
 $pdf->SetFillColor(204, 153, 0);
 //Bold Font for Field Name
 $pdf->SetFont('Arial', 'B', 8);
 $pdf->SetY($Y_Fields_Name_position);
 $pdf->SetX(5);
 //1  -->5 sebelah kiri
 $pdf->Cell(21, 8, 'ID Anggota', 1, 0, 'C', 1);
 $pdf->SetX(26);
 //2     40  //geser lebar
 $pdf->Cell(45, 8, 'Judul', 1, 0, 'C', 1);
 //geser judul
 $pdf->SetX(69);
 //3
 $pdf->Cell(30, 8, 'Tanggal Pinjam', 1, 0, 'C', 1);
 $pdf->SetX(98);
 //4
Example #25
0
$pdf->SetTextColor(0,0,0); // чёрный
$pdf->SetFont('ArialMT','',8); // задаем шрифт и его размер
//конец 1 таблицы
//начало 2 таблицы

$w=1; //счетчик вкладок
$suplier1=1; //счетчик поставщиков
 
foreach($mass as $key => $type){
    foreach($mass[$key] as $arr => $name){
        if ($suplier1==1){
        	if(isset($phone) && $phone!=""){$phone=$phone.", ";}
        	$i=1; // счетчик количества товаров в каждой вкладке
			$pdf->ln(5);
			$pdf->SetFont('Arial-BoldMT','',8); // задаем шрифт и его размер
			$pdf->SetFillColor(209,204,244); 
			$pdf->Cell(10,5,'№',1,0,'C',1);
			$pdf->Cell(50,5,'АРТИКУЛ',1,0,'C',1);
			$pdf->Cell(90,5,'НАИМЕНОВАНИЕ, ЦВЕТ, РАЗМЕР',1,0,'C',1);
			$pdf->Cell(20,5,'КОЛ-ВО',1,0,'C',1);
			$pdf->Cell(20,5,'ЦЕНА',1,0,'C',1);
			$pdf->SetFont('ArialMT','',8); // задаем шрифт и его размер
			
			$pdf->ln(5);
			$pdf->Cell(10,5,$i,1,0,'C');
			$pdf->Cell(50,5,substr($mass[$key][$arr][1], 2),1,0,'C');
			$pdf->Cell(90,5,$mass[$key][$arr][0],1,0,'C');
			$pdf->Cell(20,5,'1',1,0,'C');
			$pdf->Cell(20,5,$mass[$key][$arr][2],1,0,'C');
			
            $suplier1=$arr;
Example #26
0
    $pdf->Cell(22, 5.3, "Due Date:", 0, 2, 'R');
}
$pdf->SetXY(178, 19);
$pdf->Cell(22, 5.3, date("d/m/Y", $date), 0, 2, 'R');
$pdf->Cell(22, 5.3, $id, 0, 2, 'R');
$pdf->Cell(22, 5.3, $_POST['user'], 0, 2, 'R');
if ($payment_terms > 0) {
    $pdf->Cell(22, 5.3, date("d/m/Y", $date + $payment_terms * 3600 * 24), 0, 2, 'R');
}
//if trading name exist, use itself instead customer name
if (trim($tradingas) != "") {
    $username = $tradingas;
}
$pdf->SetXY(10, 45);
$pdf->SetFont('Arial', 'B', 11);
$pdf->SetFillColor(230, 230, 230);
$pdf->Cell(190, 6, "Invoice To:", 0, 2, 'L', true);
$pdf->SetXY(10, 50);
$pdf->SetFont('Arial', 'I', 11);
$pdf->SetFillColor(230, 230, 230);
$pdf->Cell(190, 6, htmlspecialchars_decode($username), 0, 2, 'L', true);
foreach ($customer_address as $v) {
    $pdf->Cell(22, 4.5, $v, 0, 2, 'L');
}
$pdf->SetXY(110, 45);
$pdf->SetFont('Arial', 'B', 11);
$pdf->SetFillColor(230, 230, 230);
$pdf->Cell(90, 6, "Deliver To:", 0, 2, 'L', true);
$pdf->SetXY(110, 50);
$pdf->SetFont('Arial', 'I', 11);
$pdf->SetFillColor(230, 230, 230);
$pdf->AddPage();
$pdf->SetFont('Arial', '', 9);
$pdf->SetDrawColor(0, 0, 0);
$pdf->Ln();
$pdf->Ln();
// Fondo
$pdf->Image("../images/fondo.gif", 0, 30, 297, 180);
// Logo
$pdf->Image("../qualidad/doc-" . $_SESSION['base'] . "/logo-certificado.jpg", 10, 12, 60, 30);
//  2/1 proporcional
// Salto de línea
$pdf->Ln(25);
$altura = 10;
$fill = false;
$espacioBlancoIzda = 70;
$pdf->SetFillColor(255, 255, 255);
$pdf->SetDrawColor(200, 200, 200);
$pdf->SetLineWidth(0.1);
$pdf->SetFont('Arial', 'B', 18);
$pdf->Cell(280, 50, 'CERTIFICADO DE ASISTENCIA', 0, 1, 'C');
$pdf->Ln(1);
$pdf->SetFont('Arial', '', 18);
$pdf->Cell($espacioBlancoIzda, $altura, '', 0, 0, 'L');
$pdf->Cell(0, $altura, 'Qualidad Consulting de Sistemas, S.L., CERTIFICA', 0, 0, 'L');
$pdf->Ln();
$pdf->Cell($espacioBlancoIzda, $altura, '', 0, 0, 'L', $fill);
$pdf->Cell(15, $altura, 'que ', 0, 0, 'L', $fill);
$pdf->SetFont('Arial', 'I', 18);
$width = strlen($empleado) * 4;
$pdf->Cell($width, $altura, 'D. ' . utf8_decode($empleado), 0, 0, 'L', $fill);
$pdf->SetFont('Arial', '', 18);
Example #28
0
            $pdf->Cell(25, 4, " ", 1, 1, 'C', $fill);
            $banco = $banco + $abono;
        }
    } else {
        $pdf->Cell(1, 4, '', 0, 0, 'C', $fill);
        $pdf->Cell(25, 4, '', 1, 0, 'C', $fill);
        $pdf->Cell(25, 4, '', 1, 0, 'C', $fill);
        $pdf->Cell(1, 4, '', 0, 0, 'C', $fill);
        $pdf->Cell(25, 4, "(-) \$ " . $cantidad2, 1, 1, 'C', $fill);
        $salidas = $salidas + $cantidad;
    }
}
$pdf->ln();
$fill = 0;
$pdf->Cell(116, 4, " TOTAL: ", 1, 0, 'R', $fill);
$pdf->SetFillColor(210);
$fill = 1;
$pdf->Cell(1, 4, '', 0, 0, 'C', 0);
$pdf->Cell(25, 4, "\$ " . number_format($entradas, 0, ',', '.'), 1, 0, 'C', $fill);
$pdf->Cell(25, 4, "\$ " . number_format($banco, 0, ',', '.'), 1, 0, 'C', $fill);
$pdf->Cell(1, 4, '', 0, 0, 'C', 0);
$pdf->Cell(25, 4, "(-) \$ " . number_format($salidas, 0, ',', '.'), 1, 1, 'C', $fill);
$pdf->ln(10);
$pdf->Cell(20, 2, "_________________", 0, 0);
$pdf->Cell(140, 2, " ", 0, 0);
$pdf->Cell(25, 2, "__________________", 0, 1);
$pdf->Cell(20, 4, "FIRMA RECEPCIÓN", 0, 0);
$pdf->Cell(140, 2, " ", 0, 0);
$pdf->Cell(20, 4, "FIRMA ENCARGADO", 0, 1);
$pdf->ln(3);
$pdf->Cell(90, 4, "Documento Generado a las " . $horapago . " Hrs", 0, 1);
if ($conn->connect_error) {
    die("Connection failed: " . $conn->connect_error);
}
//Create new pdf file
$pdf = new FPDF();
//Open file
//$pdf->Open();
//Disable automatic page break
$pdf->SetAutoPageBreak(false);
//Add first page
$pdf->AddPage();
//set initial y axis position per page
$y_axis_initial = 25;
$y_axis = 31;
//print column titles for the actual page
$pdf->SetFillColor(232, 232, 232);
$pdf->SetFont('TIMES', 'B', 12);
$pdf->SetY($y_axis_initial);
$pdf->SetX(25);
$pdf->Cell(50, 6, 'Intitule', 1, 0, 'L', 1);
$pdf->Cell(30, 6, 'Quantite', 1, 0, 'C', 1);
$pdf->Cell(80, 6, 'Description', 1, 0, 'R', 1);
if (!isset($row_height)) {
    $row_height = 0;
}
$y_axis = $y_axis + $row_height;
//Select the Products you want to show in your PDF file
$mail = $_SESSION['Email'];
if ($mail == "") {
    $mail = "*****@*****.**";
}
Example #30
-3
 public function post_id_upc_terms_handler()
 {
     $this->id = preg_split('/[^\\d]/', $this->id, 0, PREG_SPLIT_NO_EMPTY);
     $pdf = new FPDF('P', 'mm', 'Letter');
     $pdf->SetMargins(6.35, 6.35, 6.35);
     // quarter-inch margins
     $pdf->SetAutoPageBreak(false);
     $pdf->AddFont('Gill', '', 'GillSansMTPro-Medium.php');
     $pdf->AddFont('Gill', 'B', 'GillSansMTPro-Heavy.php');
     $margins = $pdf->GetMargins();
     $margins['top'] = 0.0;
     $check_left_x = $margins['left'] > 3.175 ? $margins['right'] : 3.175 - $margins['left'];
     $real_check_top_y = 183.675 - $margins['top'];
     $check_right_x = 203.2 - $margins['left'];
     $real_check_bottom_y = 255.112 - $margins['top'];
     $line_height = 5;
     $envelope_window_tab = 15;
     $right_col1 = 130;
     $right_col2 = 170;
     $my_address = array('610 E 4th St', 'Duluth, MN 55805', 'Tel: 218.728.0884', 'www.wholefoods.coop');
     $check_date = date('F j, Y');
     $dbc = $this->connection;
     $dbc->setDefaultDB($this->config->get('OP_DB'));
     $signage = new COREPOS\Fannie\API\item\FannieSignage(array());
     foreach ($this->id as $card_no) {
         $pdf->AddPage();
         $account = \COREPOS\Fannie\API\member\MemberREST::get($card_no);
         $primary = array();
         foreach ($account['customers'] as $c) {
             if ($c['accountHolder']) {
                 $primary = $c;
                 break;
             }
         }
         $check_number = rand(100000, 999995);
         for ($i = 0; $i < 3; $i++) {
             $pdf->SetFont('Gill', '', 10);
             $check_top_y = $real_check_top_y - $i * 90;
             $check_bottom_y = $real_check_bottom_y - $i * 90;
             $pdf->SetXY($check_left_x, $check_top_y);
             $pdf->Ln($line_height * 4.25);
             foreach ($my_address as $line) {
                 $pdf->SetX($check_left_x + $envelope_window_tab + 20);
                 if ($line == 'www.wholefoods.coop') {
                     $pdf->SetFont('Gill', 'B', 9);
                 }
                 $pdf->Cell(0, $line_height, $line, 0, 1);
             }
             $pdf->SetFont('Gill', 'B', 10);
             $pdf->SetXY($check_left_x + $right_col1, $check_top_y);
             $pdf->Cell(30, $line_height, 'Check Number:', 0, 0, 'R');
             $pdf->SetFont('Gill', '', 10);
             $pdf->SetTextColor(0xff, 0x58, 0);
             $pdf->SetX($check_left_x + $right_col2);
             $pdf->Cell(30, $line_height, $check_number, 0, 0, 'R');
             $pdf->SetFont('Gill', 'B', 10);
             $pdf->SetTextColor(0, 0, 0);
             $pdf->SetXY($check_left_x + $right_col1, $check_top_y + 1.5 * $line_height);
             $pdf->Cell(30, $line_height, 'Date:', 0, 0, 'R');
             $pdf->SetFont('Gill', '', 10);
             $pdf->SetTextColor(0xff, 0x58, 0);
             $pdf->SetX($check_left_x + $right_col2);
             $pdf->Cell(30, $line_height, $check_date, 0, 0, 'R');
             $pdf->SetXY($check_left_x + $right_col1, $check_top_y + 3 * $line_height);
             $pdf->SetFont('Gill', 'B', 10);
             $pdf->SetTextColor(0, 0, 0);
             $pdf->Cell(30, $line_height, 'Amount:', 0, 0, 'R');
             $pdf->SetXY($check_left_x + $right_col1 + 30, $check_top_y + 3 * $line_height);
             $pdf->SetFont('Gill', '', 10);
             $pdf->SetTextColor(0xff, 0x58, 0);
             $pdf->MultiCell(40, $line_height, str_repeat(' ', 2) . $this->terms, 0, 'R');
             $pdf->SetTextColor(0, 0, 0);
             $their_address = array($primary['firstName'] . ' ' . $primary['lastName']);
             $their_address[] = $account['addressFirstLine'];
             if ($account['addressSecondLine']) {
                 $their_address[] = $account['addressSecondLine'];
             }
             $their_address[] = $account['city'] . ', ' . $account['state'] . ' ' . $account['zip'];
             $pdf->SetXY($check_left_x + $envelope_window_tab, $check_top_y + 11 * $line_height);
             $pdf->SetFont('Gill', 'B', 10);
             foreach ($their_address as $line) {
                 $pdf->SetX($check_left_x + $envelope_window_tab);
                 $pdf->Cell(0, $line_height, $line, 0, 1);
             }
             $pdf->SetFont('Gill', '', 10);
             $pdf->SetXY($check_left_x, $check_bottom_y + $line_height - 1);
             $pdf->SetTextColor(0, 0, 0);
             $pdf->SetFont('Gill', 'B', 10);
             $pdf->Cell(0, $line_height, 'Redeemable only at Whole Foods Co-op', 0, 0, 'C');
             $pdf->SetFont('Gill', '', 10);
             $pdf->SetXY($check_left_x + 145, $check_top_y + 6 * $line_height + 1);
             $pdf->SetFont('Gill', '', 8);
             $pdf->MultiCell(50, $line_height - 2, 'Limit one per day. Cannot be applied to previous purchases. No cash value.');
             $pdf->SetFont('Gill', '', 10);
             $pdf->SetFillColor(0xcc, 0xcc, 0xcc);
             $pdf->Rect($check_left_x + 84, $check_top_y + 28, 39, 15, 'F');
             $pdf->SetFillColor(0, 0, 0);
             $signage->drawBarcode(ltrim($this->upc, '0'), $pdf, $check_left_x + 87, $check_top_y + 30, array('height' => 11, 'fontsize' => 0));
             $pdf->Image('logo.rgb.noalpha.png', $check_left_x + $envelope_window_tab, $check_top_y + 20, 20);
             $pdf->SetFont('Gill', 'B', '31');
             $pdf->SetXY($check_left_x + $envelope_window_tab, $check_top_y + 0.5 * $line_height);
             $pdf->SetTextColor(0xff, 0x58, 0);
             $pdf->Cell(0, 3 * $line_height, 'We Appreciate You!');
             $pdf->SetFont('Gill', '', '10');
             $pdf->SetTextColor(0, 0, 0);
             $pdf->Image(dirname(__FILE__) . '/../GiveUsMoneyPlugin/img/sig.png', $check_right_x - 63.5, $check_top_y + 9 * $line_height, 63.5);
             $pdf->SetXY($check_right_x - 63.5, $check_top_y + 12 * $line_height);
             $pdf->Cell(63.5, $line_height, 'Authorized By Signature', 'T');
             $check_number++;
         }
     }
     $pdf->Output();
 }