function genpdf($typefacture, $datefacture, $nofacture, $montant, $civilite, $client, $contact, $chrono, $today)
{
    $pdf = new FPDF("P", "mm", "A4");
    $pdf->AddPage();
    $pdf->SetMargins(20, 20);
    $pdf->AddFont("Arialb", "", "arialb.php");
    //$pdf->AddFont("Courier","","arialb.php");
    /////////////////////////////////////en tete////////////////////////////////////////
    //logo
    $pdf->SetXY(18, 24);
    $X = $pdf->GetX();
    $Y = $pdf->GetY();
    $pdf->Image("img/logo.jpg", $X, $Y, 23, 19, "jpg");
    //Commune de Faa"a
    $pdf->SetXY(42, 22);
    $X = $pdf->GetX();
    $Y = $pdf->GetY();
    $pdf->SetFont("Arialb", "", 13);
    $pdf->Cell(55, 10, utf8_decode("COMMUNE DE FAA'A"));
    $pdf->SetXY($X + 1, $Y + 8);
    $pdf->SetFont("Arial", "", 12);
    $pdf->Cell(55, 5, utf8_decode("N° {$chrono}/DAF/FTR-Régie-hp"), 1, 1, "C");
    //$X=$pdf->GetX();
    $Y = $pdf->GetY();
    $pdf->SetXY($X, $Y);
    $pdf->SetFont("Arial", "", 9);
    $pdf->Cell(55, 5, utf8_decode("Affaire suivie par : Hinatini Parker"), 0, 1);
    $Y = $pdf->GetY();
    $pdf->SetXY($X, $Y);
    $pdf->SetFont("Arial", "", 9);
    $pdf->Cell(55, 3, utf8_decode("Téléphone : 800 960 poste 421"), 0, 0);
    ///////////////////////////////////fin en tete/////////////////////////////////////
    ///////////////////////////////////colonne droite/////////////////////////////////
    //Date
    $pdf->SetXY($X + 100, $Y);
    $pdf->SetFont("Arial", "", 10);
    $pdf->Cell(55, 3, "Faa'a le " . $today, 0);
    ///////////////////////////////////fin colonne droite////////////////////////////
    /////////////////////////////////info exp/dest //////////////////////////////////////
    //Le Maire
    $pdf->SetY(60);
    $pdf->SetFont("times", "", 18);
    $pdf->Cell(0, 10, "Le Maire", 0, 1, "C");
    //Destinataire
    $pdf->SetY(70);
    $pdf->SetFont("Arial", "", 10);
    $pdf->Multicell(0, 5, utf8_decode("à\n{$client}\n{$contact}"), 0, "C");
    $currentY = $pdf->GetY();
    $pdf->SetY($currentY + 10);
    $pdf->SetFont("Arialb", "U", 10);
    $pdf->Cell(20, 5, utf8_decode("Objet :"), 0, 0, "L");
    $pdf->SetFont("Arialb", "", 10);
    $pdf->Cell(0, 5, utf8_decode("Relance des factures impayées"), 0, 1, "L");
    $pdf->SetFont("Arial", "U", 10);
    $pdf->Cell(20, 5, utf8_decode("N/Réf :"), 0, 0, "L");
    $pdf->SetFont("Arial", "", 10);
    $pdf->Cell(0, 5, utf8_decode("Facture {$typefacture} N° {$nofacture} du {$datefacture}"), 0, 1, "L");
    $Y = $pdf->GetY();
    $pdf->SetY($Y + 20);
    $text = "{$civilite},\n\nJe vous informe que, sauf erreur de ma part, vous présentez un impayé " . "envers la Commune de FAA'A d'un montant de {$montant} FCP au titre de la (des) {$typefacture}.\n\n" . "Aussi, je vous demande de bien vouloir vous rapprocher de la Régie municipale pour vous acquitter de la somme due.\n\n" . "A défaut de réponse de votre part dans un délai de 45 jours à compter de la date du présent courrier," . "votre dossier sera transmis en contentieux à la Trésorerie des Iles du Vent, des Australes et des Archipels pour commandement de payer.\n\n" . "La Régie reste à votre disposition au 800.960 poste 421 pour toute entente préalable avant poursuite.\n\n" . "Je vous prie d'agréer, {$civilite}, l'expression de mes salutations distinguées";
    $pdf->Multicell(0, 5, utf8_decode($text), 0, "L");
    $pdf->Image("img/marianne.jpg", 150, 220, 31, 31, "jpg");
    ////////////////////////////////information////////////////////////////////////
    $pdf->Line(20, 273, 190, 273);
    $pdf->SetXY(20, 273);
    $pdf->SetFont("Arial", "", 7);
    $pdf->Cell(0, 3, utf8_decode("PK 4 côté mer - BP 60 002 - 98702 Faa’a Centre - Tahiti / Tél. : (689) 800 960 - Télécopie : (689) 834 890 - E-mail : mairiefaaa@mail.pf\n"), 0, 0, "C");
    ////////////////////////////////fin information////////////////////////////////////
    $pdf->Output();
}
示例#2
1
 function line($x1, $y1, $x2, $y2)
 {
     parent::Line($this->flash_y_offset + $y1, $this->flash_x_offset + $x1, $this->flash_y_offset + $y2, $this->flash_x_offset + $x2);
 }
示例#3
1
function pdf_export_dots(&$dots, &$more)
{
    # PLEASE FOR TO BE CACHING ME, OBIWAN...
    # (20110120/straup)
    $w = 11;
    $h = 8.5;
    $margin = 0.5;
    $dpi = 72;
    $header_h = 0.2;
    $row_h = 0.2;
    $col_width = 1.25;
    # Here we go...
    $pdf = new FPDF("P", "in", array($w, $h));
    $pdf->setMargins($margin, $margin);
    # The legend gets added below (once we've figured out what page
    # each dot is on) but we'll just declare it here.
    $legend = array();
    $count_legend_items = floor($h / ($row_h * 1.4));
    $count_clusters = ceil(count($dots) / $count_legend_items);
    # Just turn clusters off for now... the map rendering time
    # is still too long for multiple map images (20110120/straup)
    $count_clusters = 1;
    $clusters = array();
    if ($count_clusters == 1) {
        $clusters = array($dots);
    } else {
        $points = array();
        $i = 0;
        foreach ($dots as $dot) {
            $points[] = array('x' => (double) $dot['longitude'], 'y' => (double) $dot['latitude'], 'id' => $dot['id'], 'idx' => $i);
            $i++;
        }
        $_clusters = kmeans_cluster($points, $count_clusters);
        foreach ($_clusters as $_cluster) {
            $_dots = array();
            foreach ($_cluster as $_pt) {
                $_dots[] = $dots[$pt['idx']];
            }
            $clusters[] = $_dots;
        }
    }
    #
    # First generate all the maps
    #
    $maps = array();
    $img_more = array('width' => $h * $dpi, 'height' => $h * $dpi, 'dot_size' => 15);
    foreach ($clusters as $dots) {
        list($map, $gd_img) = maps_image_for_dots($dots, $img_more);
        $maps[] = maps_gd_to_png($gd_img, 'pdf');
    }
    # Now figure out the what is the what of the dots
    $columns = array();
    $cols_per_page = floor(($w - $margin * 2) / $col_width);
    $count_cols = count($more['columns']);
    $pages_per_row = ceil($count_cols / $cols_per_page);
    # See this? We're adding enough extra columns and re-counting
    # everything in order to ensure that every page for each row
    # has an 'id' column
    if ($pages_per_row > 1) {
        $_count = $count_cols + ($pages_per_row - 1);
        $pages_per_row = ceil($_count / $cols_per_page);
    }
    # First, chunk out the header in (n) pages and measure the
    # height of the (header) row itself
    $_h = $header_h * 1.3;
    $pdf->SetFont('Helvetica', 'B', 10);
    for ($i = 0; $i < $count_cols; $i++) {
        $col_name = $more['columns'][$i];
        $b = floor($i / $cols_per_page);
        if (!is_array($columns[$b])) {
            $columns[] = array();
        }
        $columns[$b][] = $col_name;
        $str_width = ceil($pdf->GetStringWidth($more['columns'][$i]));
        if ($str_width > $col_width) {
            $lines = ceil($str_width / $col_width);
            $_h = max($_h, $lines * $header_h);
        }
    }
    $header_h = $_h;
    # make sure every page has an 'id' field
    # (see above)
    $count_columns = count($columns);
    for ($i = 0; $i < $count_columns; $i++) {
        $cols = $columns[$i];
        if (!in_array('id', $cols)) {
            array_unshift($cols, 'id');
            $columns[$i] = $cols;
        }
        # move stuff around so that we keep the pages nice and tidy
        if (count($columns[$i]) > $cols_per_page) {
            $to_keep = array_slice($columns[$i], 0, $cols_per_page);
            $extra = array_slice($columns[$i], $cols_per_page);
            $columns[$i] = $to_keep;
            $columns[$i + 1] = $extra;
        }
    }
    # Now work out the height of each row of dots
    $row_heights = array();
    $pdf->SetFont('Helvetica', '', 10);
    foreach ($dots as $dot) {
        $_h = $row_h;
        foreach ($dot as $key => $value) {
            $str_width = ceil($pdf->GetStringWidth($value));
            if ($str_width > $col_width) {
                $lines = ceil($str_width / $col_width);
                $_h = max($_h, $lines * $row_h);
            }
        }
        $row_heights[] = $_h * 1.1;
    }
    # Now sort everything in to pages
    $pages = array();
    $page = 0;
    $count_dots = count($dots);
    $dot_idx = 0;
    $y = $margin + $header_h;
    while ($dot_idx < $count_dots) {
        $dot = $dots[$dot_idx];
        $row_height = $row_heights[$dot_idx];
        # will this row bleed off the current page ($page) ?
        $goto_nextpage = 0;
        if ($y + $row_height > $h - $margin * 1.5) {
            $goto_nextpage = 1;
        }
        if ($goto_nextpage) {
            $page += $pages_per_row;
            $y = $margin + $header_h;
        }
        $y += $row_height;
        # set up information for legend
        $legend[$dot['id']] = array('page' => $page + 2, 'id' => $dot['id'], 'latitude' => $dot['latitude'], 'longitude' => $dot['longitude'], 'ymd' => gmdate('Y-m-d', strtotime($dot['created'])));
        #
        $j = 0;
        foreach ($columns as $cols) {
            $_row = array();
            foreach ($cols as $name) {
                $_row[] = $dot[$name];
            }
            $page_idx = $page + $j;
            if (!is_array($pages[$page_idx])) {
                $pages[$page_idx] = array(array('row' => $cols, 'bold' => 1, 'height' => $header_h));
            }
            $pages[$page_idx][] = array('row' => $_row, 'height' => $row_height);
            $j++;
        }
        $dot_idx++;
    }
    #
    # ZOMG... finally publish the thing...
    #
    # First, display all the maps and corresponding
    # legends
    function sort_by_lat($a, $b)
    {
        if ($a['latitude'] == $b['latitude']) {
            return 0;
        }
        return $a['latitude'] > $b['latitude'] ? -1 : 1;
    }
    $count_clusters = count($clusters);
    for ($i = 0; $i < $count_clusters; $i++) {
        $dots = $clusters[$i];
        $_legend = array();
        $j = 0;
        foreach ($dots as $dot) {
            $_legend[$dot['id']] = $legend[$dot['id']];
            $j++;
            if ($j >= $count_legend_items) {
                break;
            }
        }
        usort($_legend, "sort_by_lat");
        $pdf->AddPage();
        $pdf->Image($maps[$i], 0, 0, 0, 0, 'PNG');
        $pdf->SetFont('Helvetica', '', 10);
        $x = $h + $margin;
        $y = $margin;
        foreach ($_legend as $dot) {
            $text = "{$dot['id']} / pg. {$dot['page']}";
            $pdf->SetXY($x, $y);
            $pdf->Cell(0, $row_h, $text);
            $loc = new MMaps_Location($dot['latitude'], $dot['longitude']);
            $pt = $map->locationPoint($loc);
            $x1 = $x - $margin / 8;
            $y1 = $y + $row_h / 2;
            $x2 = $pt->x / $dpi;
            $y2 = $pt->y / $dpi;
            $pdf->Line($x1, $y1, $x2, $y2);
            $y += $row_h * 1.1;
        }
    }
    # Now the rows (of dots)
    foreach ($pages as $page) {
        $pdf->AddPage();
        $x = $margin;
        $y = $margin;
        $z = 0;
        foreach ($page as $data) {
            $style = $data['bold'] ? 'B' : '';
            $pdf->SetFont('Helvetica', $style, 10);
            $x_offset = $col_width * 0.1;
            $y_offset = $data['height'] * 0.1;
            $max_width = $col_width - $x_offset * 3;
            $bg = $z % 2 ? 255 : 235;
            $z++;
            foreach ($data['row'] as $value) {
                $value = trim($value);
                $width = $pdf->GetStringWidth($value);
                $pdf->SetFillColor($bg);
                $pdf->Rect($x, $y, $col_width, $data['height'], 'F');
                # Don't bother with MultiCell - it is behaving
                # badly (20110120/straup)
                if ($width < $max_width) {
                    $pdf->SetXY($x + $x_offset, $y + $y_offset);
                    $pdf->Cell(0, $row_h, $value);
                } else {
                    $_x = $x;
                    $_y = $y;
                    $lines = array();
                    $buffer = '';
                    foreach (str_split($value) as $char) {
                        if ($buffer == '' && $char == ' ') {
                            continue;
                        }
                        $buffer .= $char;
                        $width = $pdf->GetStringWidth($buffer);
                        if ($width >= $max_width) {
                            $lines[] = $buffer;
                            $buffer = '';
                        }
                    }
                    if (strlen($buffer)) {
                        $lines[] = $buffer;
                        $buffer = '';
                    }
                    foreach ($lines as $ln) {
                        $pdf->SetXY($_x + $x_offset, $_y + $y_offset);
                        $pdf->Cell(0, $row_h, $ln);
                        $_y += $row_h * 0.8;
                    }
                }
                $x += $col_width;
            }
            $x = $margin;
            $y += $data['height'];
        }
    }
    # Go!
    $pdf->Close();
    $pdf->Output($more['path'], 'F');
    $pdf = null;
    foreach ($maps as $map_img) {
        if (!unlink($map_img)) {
            error_log("[EXPORT] (pdf) unlink {$map_img} : {$ok}");
        }
    }
    return $more['path'];
}
 $pdf->Cell('', 1, '', '', 1, 'C');
 $pdf->Cell('', 1, '', '', 1, 'C');
 $pdf->Cell('', 1, '', '', 1, 'C');
 $pdf->Cell('', 1, '', '', 1, 'C');
 $pdf->Cell('', 1, '', '', 1, 'C');
 $pdf->Cell('', 1, $data_atual, '', 1, 'C');
 $pdf->Cell('', 1, $impressao_ordem, '', 1, 'R');
 $pdf->ln();
 $pdf->ln();
 $pdf->ln();
 $pdf->ln();
 $pdf->Cell('', 1, $responsavel_empresa, '', 1, 'C');
 $pdf->ln();
 $pdf->ln();
 $pdf->Write(0.5, $sub, '');
 $pdf->Line(1, 25, 20, 25);
 $pdf->Ln();
 $pdf->Cell('', 0.5, $rodape, '', 1, 'C');
 $rodape = $responsavel_endereco . ', ' . $responsavel_cidade . '-' . $responsavel_estado . ' CEP: ' . $responsavel_cep;
 $pdf->Cell('', 0.5, $rodape, '', 1, 'C');
 $rodape = 'Tel/Fax: ' . $responsavel_tel . '/' . $responsavel_fax . ' E-mail:' . $responsavel_email;
 $pdf->Cell('', 0.5, $rodape, '', 1, 'C');
 $rodape = 'www.cartoriopostal.com.br';
 $pdf->Cell('', 0.5, $rodape, '', 1, 'C');
 if ($anexar == 'on' and $id_servico == '16') {
     $pdf->Close();
     //imprime a saida
     $sql = "select id_pedido_item from vsites_pedido_anexo as pa where anexo_nome='Declaração de Busca' and id_pedido_item='" . $id_pedido_item . "'";
     $res_a = $objQuery->SQLQuery($sql);
     $num_a = mysql_num_rows($res_a);
     if ($num_a == '') {
示例#5
0
 function Line($x1, $y1, $x2, $y2, $style = null)
 {
     if ($style) {
         $this->SetLineStyle($style);
     }
     parent::Line($x1, $y1, $x2, $y2);
 }
    $pdf->Cell(35, 4, $arrData[name], $border);
    $pdf->Ln();
    $pdf->Cell(16, 4, "From", $border);
    $pdf->Cell(35, 4, $from, $border);
    $pdf->Ln();
    $pdf->Cell(16, 4, "Subject", $border);
    $pdf->Cell(35, 4, $arrData[subject], $border);
    $pdf->Ln();
    $pdf->Cell(16, 4, "College", $border);
    $pdf->Cell(35, 4, $arrData[college], $border);
    $pdf->Ln();
    $pdf->Ln();
    if ($arrData[picture] != "" && file_exists("residentsnh/" . $arrData[picture])) {
        $path_parts = pathinfo($arrData[picture]);
        if ($path_parts[extension] != 'bmp') {
            $pdf->Image("residentsnh/" . $arrData[picture], $pdf->GetX() + 100, $pdf->GetY() - 25, 18);
        } else {
            echo "Error, " . $arrData[name] . " " . $arrData[surname] . " has it's picture in BMP format!<br>";
        }
    } else {
        $pdf->Image("imgs/no_picture.png", $pdf->GetX() + 100, $pdf->GetY() - 25, 18);
    }
    $pdf->Line(46, $pdf->GetY(), 163, $pdf->GetY());
    $pdf->Ln();
    $pdf->Ln();
    if ($i == 8) {
        $pdf->AddPage();
        $i = 0;
    }
}
$pdf->Output();
示例#7
0
 public function drawPDF()
 {
     $pdf = new \FPDF('L', 'mm', 'Letter');
     $pdf->SetMargins(3.175, 3.175, 3.175);
     $pdf->SetAutoPageBreak(false);
     define('FPDF_FONTPATH', dirname(__FILE__) . '/noauto/fonts/');
     $pdf->AddFont('Gill', '', 'GillSansMTPro-Medium.php');
     $pdf->AddFont('Gill', 'B', 'GillSansMTPro-Heavy.php');
     $pdf->AddFont('GillBook', '', 'GillSansMTPro-Book.php');
     $pdf->SetFont('Gill', '', 16);
     $data = $this->loadItems();
     $count = 0;
     $sign = 0;
     $width = 68.67;
     $height = 71;
     $top = 22;
     $left = 6.0;
     $effective_width = $width - $left;
     foreach ($data as $item) {
         if ($count % 12 == 0) {
             if ($count != 0) {
                 // draw tick marks again
                 // sometimes other content of the page
                 // overwrites them
                 $pdf->Line(2, $height + 0.0, 6, $height + 0.0);
                 $pdf->Line(2, 2 * $height + 1.0, 6, 2 * $height + 1.0);
                 $pdf->Line(4 * $width - 3, $height + 0.0, 4 * $width + 1, $height + 0.0);
                 $pdf->Line(4 * $width - 3, 2 * $height + 1.0, 4 * $width + 1, 2 * $height + 1.0);
                 $pdf->Line($width + 1.5, 2, $width + 1.5, 8);
                 $pdf->Line(2 * $width + 1.5, 2, 2 * $width + 1.5, 8);
                 $pdf->Line(3 * $width + 1.5, 2, 3 * $width + 1.5, 8);
                 $pdf->Line($width + 1.5, 3 * $height - 6, $width + 1.5, 3 * $height);
                 $pdf->Line(2 * $width + 1.5, 3 * $height - 6, 2 * $width + 1.5, 3 * $height);
                 $pdf->Line(3 * $width + 1.5, 3 * $height - 6, 3 * $width + 1.5, 3 * $height);
             }
             $pdf->AddPage();
             // draw tick marks for cutting
             $pdf->Line(2, $height + 0.0, 6, $height + 0.0);
             $pdf->Line(2, 2 * $height + 1.0, 6, 2 * $height + 1.0);
             $pdf->Line(4 * $width - 3, $height + 0.0, 4 * $width + 1, $height + 0.0);
             $pdf->Line(4 * $width - 3, 2 * $height + 1.0, 4 * $width + 1, 2 * $height + 1.0);
             $pdf->Line($width + 1.5, 2, $width + 1.5, 8);
             $pdf->Line(2 * $width + 1.5, 2, 2 * $width + 1.5, 8);
             $pdf->Line(3 * $width + 1.5, 2, 3 * $width + 1.5, 8);
             $pdf->Line($width + 1.5, 3 * $height - 6, $width + 1.5, 3 * $height);
             $pdf->Line(2 * $width + 1.5, 3 * $height - 6, 2 * $width + 1.5, 3 * $height);
             $pdf->Line(3 * $width + 1.5, 3 * $height - 6, 3 * $width + 1.5, 3 * $height);
             $sign = 0;
         }
         $row = floor($sign / 4);
         $column = $sign % 4;
         $price = $item['normal_price'];
         if ($item['scale']) {
             if (substr($price, 0, 1) != '$') {
                 $price = sprintf('$%.2f', $price);
             }
             $price .= ' /lb.';
         } elseif (isset($item['signMultiplier'])) {
             $price = $this->formatPrice($item['normal_price'], $item['signMultiplier']);
         } else {
             $price = $this->formatPrice($item['normal_price']);
         }
         $pdf->Image(dirname(__FILE__) . '/cd_head_16.png', $left - 1 + $width * $column, $top - 19 + $row * $height, $width - 6);
         $pdf->SetXY($left + $width * $column, $top + $row * $height + 1);
         $pdf->SetFont('Gill', 'B', $this->SMALL_FONT);
         $pdf->MultiCell($effective_width, 6, strtoupper($item['brand']), 0, 'C');
         /**
           This block attempts to write the description then
           checks how many lines it took. If the description was
           longer than two lines, it whites the whole thing out,
           drops one font size, and tries again. Calculating
           effective text size with smart line breaks seems
           really tough.
         */
         $pdf->SetFont('Gill', '', $this->MED_FONT);
         $font_shrink = 0;
         while (true) {
             $pdf->SetX($left + $width * $column);
             $y = $pdf->GetY();
             $pdf->MultiCell($effective_width, 7, $item['description'], 0, 'C');
             if ($pdf->GetY() - $y > 14) {
                 $pdf->SetFillColor(0xff, 0xff, 0xff);
                 $pdf->Rect($left + $width * $column, $y, $left + $width * $column + $effective_width, $pdf->GetY(), 'F');
                 $font_shrink++;
                 if ($font_shrink >= $this->MED_FONT) {
                     break;
                 }
                 $pdf->SetFontSize($this->MED_FONT - $font_shrink);
                 $pdf->SetXY($left + $width * $column, $y);
             } else {
                 if ($pdf->GetY() - $y < 14) {
                     $words = explode(' ', $item['description']);
                     $multi = '';
                     for ($i = 0; $i < floor(count($words) / 2); $i++) {
                         $multi .= $words[$i] . ' ';
                     }
                     $multi = trim($multi) . "\n";
                     for ($i = floor(count($words) / 2); $i < count($words); $i++) {
                         $multi .= $words[$i] . ' ';
                     }
                     $item['description'] = trim($multi);
                     $pdf->SetFillColor(0xff, 0xff, 0xff);
                     $pdf->Rect($left + $width * $column, $y, $left + $width * $column + $effective_width, $pdf->GetY(), 'F');
                     $pdf->SetXY($left + $width * $column, $y);
                     $pdf->MultiCell($effective_width, 7, $item['description'], 0, 'C');
                 }
                 break;
             }
         }
         $pdf->SetX($left + $width * $column);
         $pdf->SetFont('GillBook', '', $this->SMALLER_FONT);
         $item['size'] = strtolower($item['size']);
         if (substr($item['size'], -1) != '.') {
             $item['size'] .= '.';
             // end abbreviation w/ period
             $item['size'] = str_replace('fz.', 'fl oz.', $item['size']);
         }
         if (substr($item['size'], 0, 1) == '.') {
             $item['size'] = '0' . $item['size'];
             // add leading zero on decimal qty
         }
         if (strlen(ltrim($item['upc'], '0')) < 5 && $item['scale']) {
             $item['size'] = 'PLU# ' . ltrim($item['upc'], '0');
             // show PLU #s on by-weight
         }
         $pdf->Cell($effective_width, 6, $item['size'], 0, 1, 'C');
         $pdf->SetXY($left + $width * $column, $top + $height * $row + ($height - 42));
         $pdf->SetFont('Gill', '', $this->BIG_FONT);
         $pdf->Cell($effective_width, 12, $price, 0, 1, 'C');
         if ($item['startDate'] != '' && $item['endDate'] != '') {
             // intl would be nice
             $datestr = date('M d', strtotime($item['startDate'])) . chr(0x96) . date('M d', strtotime($item['endDate']));
             $pdf->SetXY($left + $width * $column, $top + $height * $row + ($height - 37));
             $pdf->SetFont('GillBook', '', $this->SMALLEST_FONT);
             $pdf->Cell($effective_width, 20, strtoupper($datestr), 0, 1, 'R');
         }
         if ($item['upc'] != '') {
             $pdf->SetXY($left + $width * $column, $top + $height * $row + ($height - 37));
             $pdf->SetFont('GillBook', '', $this->SMALLEST_FONT);
             $pdf->Cell($effective_width, 20, $item['upc'], 0, 1, 'L');
         }
         $pdf->Image(dirname(__FILE__) . '/' . $this->footer_image, $left - 1 + $width * $column, $top + $height * $row + ($height - $top - 4), $width - 6);
         $count++;
         $sign++;
     }
     $pdf->Output('Signage12UpL.pdf', 'I');
 }
$pdf->SetFont('Arial', 'B', 11);
$pdf->Ln(22);
$pdf->SetFont('Arial', '', 10);
$pdf->Cell(75, 8, '_______________________________', 0, 0, "C");
$pdf->Cell(135, 8, '_______________________________', 0, 0, "C");
$pdf->Ln(7);
$pdf->Cell(80, 8, 'Firma del Solicitante', 0, 0, "C");
$pdf->Cell(125, 8, 'V.B del Jefe Inmediato  ', 0, 0, "C");
$pdf->Ln(15);
$pdf->Cell(180, 8, '____________________________________', 0, 0, "C");
$pdf->Ln(7);
$pdf->Cell(180, 8, utf8_decode('Sección de Efectividad y Control'), 0, 0, "C");
$pdf->Ln(5);
$pdf->Cell(180, 8, 'del Recurso Humano', 0, 0, "C");
$pdf->Ln(35);
$pdf->Line(20, 45, 500, 45);
$pdf->Image($maindir . 'assets/img/logo_unah.png', 10, 150, 18, 30, 'PNG');
$pdf->Image($maindir . 'assets/img/logo-cienciasjuridicas.png', 170, 150, 25, 25, 'PNG');
$pdf->Cell(22, 10, '', 0);
$pdf->SetFont('Arial', '', 18);
$pdf->Cell(5, 10, '', 0);
$pdf->Cell(70, 10, utf8_decode('Universidad Nacional Autónoma de Honduras'), 0);
$pdf->Ln(15);
$pdf->SetFont('Arial', 'U', 14);
$pdf->Cell(30, 8, '', 0, 0, "C");
$pdf->Cell(130, 8, ' Control de Permisos Personales', 0, 0, "C");
$pdf->Rect(6, 184, 200, 100, 'D');
$pdf->SetFont('Arial', '', 12);
$pdf->Ln(10);
$nombreCompleto = "{$result['Primer_nombre']} {$result['Segundo_nombre']} {$result['Primer_apellido']} {$result['Segundo_Apellido']}";
$pdf->Cell(100, 15, 'Nombre: ' . $nombreCompleto, 0, 0, "");
示例#9
0
 define('FPDF_FONTPATH', 'font/');
 include $FANNIE_ROOT . 'src/fpdf/fpdf.php';
 $pdf = new FPDF('P', 'mm', 'Letter');
 //start new instance of PDF
 $pdf->Open();
 //open new PDF Document
 $count = 0;
 $x = 0;
 $y = 0;
 $date = date("m/d/Y");
 $signage = new FannieSignage(array());
 for ($i = 0; $i < 4; $i++) {
     if ($count % 4 == 0) {
         $pdf->AddPage();
         $pdf->SetDrawColor(0, 0, 0);
         $pdf->Line(108, 0, 108, 279);
         $pdf->Line(0, 135, 215, 135);
     }
     $x = $count % 2 == 0 ? 5 : 115;
     $y = $count / 2 % 2 == 0 ? 10 : 145;
     $pdf->SetXY($x, $y);
     $tmp = explode(":", $toid);
     $pdf->SetFont('Arial', '', '12');
     $pdf->Text($x + 85, $y, "1 / 1");
     $pdf->SetFont('Arial', 'B', '24');
     $pdf->Cell(100, 10, 'WFC Special', 0, 1, 'C');
     $pdf->SetFont('Arial', '', '12');
     $pdf->SetX($x);
     $pdf->SetFont('Arial', '', '16');
     $pdf->Cell(100, 9, $_REQUEST['desc'], 0, 1, 'C');
     $pdf->SetX($x);
$pdf->ln(5);
$altura = 6;
$pdf->setfont('arial', 'B', 8);
$pdf->cell(130, $altura, 'TOMADOR DO SERVIÇO', 1, 0, "C", 0);
$pdf->cell(60, $altura, 'DADOS DA PLANILHA', 1, 1, "C", 0);
$pdf->setfont('arial', '', 8);
$pdf->cell(130, $altura, 'NOME : ' . strtoupper($z01_nome), 1, 0, "L", 0);
$pdf->cell(60, $altura, 'CODIGO : ' . db_formatar($planilha, 's', '0', 4, 'e'), 1, 1, "L", 0);
$pdf->cell(130, $altura, 'INSCRIÇÃO : ' . $q20_inscr, 1, 0, "L", 0);
$pdf->cell(60, $altura, 'COMPETÊNCIA : ' . db_formatar($q20_mes, 's', '0', 2, 'e') . '/' . $q20_ano, 1, 1, "L", 0);
$pdf->multicell(190, $altura, 'OBSERVAÇÃO :  Os valores registrados nesta planilha somente serão considerados após o pagamento desta guia.', 1, "L", 0);
$linha = 65;
for ($i = 0; $i < 2; $i++) {
    $pdf->SetLineWidth(0.05);
    //$pdf->SetDash(1,1);
    $pdf->Line(5, $linha - 2, 205, $linha - 2);
    // linha tracejada horizontal
    //$pdf->SetDash();
    $pdf->Line(47, $linha, 47, $linha + 9);
    $pdf->Line(63, $linha, 63, $linha + 9);
    $pdf->SetLineWidth(0.6);
    $pdf->Line(10, $linha + 9, 195, $linha + 9);
    $pdf->SetLineWidth(0.2);
    $pdf->Line(10, $linha + 17, 195, $linha + 17);
    $pdf->Line(10, $linha + 25, 195, $linha + 25);
    $pdf->Line(10, $linha + 33, 195, $linha + 33);
    $pdf->Line(10, $linha + 41, 195, $linha + 41);
    $pdf->Line(149, $linha + 49, 195, $linha + 49);
    $pdf->Line(149, $linha + 57, 195, $linha + 57);
    $pdf->Line(149, $linha + 65, 195, $linha + 65);
    $pdf->Line(149, $linha + 73, 195, $linha + 73);
示例#11
0
 $pdf->Cell(10, 12, "No. :", "", 0, 'L');
 $pdf->SetFont("Times", "B", 10);
 $pdf->Cell(0, 12, "{$receipt_prefix}{$receipt_no}", "", 0, 'R');
 //paymentvoucher Date label block (5)
 $pdf->SetXY($xmargin + 145, 18);
 $pdf->SetFont("Times", "", 10);
 $pdf->Cell(10, 12, "Date :", "", 0, 'L');
 $pdf->SetFont("times", "B", 10);
 $pdf->Cell(0, 12, "{$receipt_date}", "", 0, 'R');
 //Receipt From label block (6)
 $pdf->SetXY(10, 30);
 // ori Y=60
 $pdf->SetFont("Times", "", 10);
 $pdf->Cell(40, 12, "Received From :", "", 0, 'L');
 $pdf->SetFont("Times", "B", 10);
 $pdf->Line($pdf->GetX(), $pdf->GetY() + 9, $pdf->GetX() + 150, $pdf->GetY() + 9);
 $pdf->Cell(0, 12, "{$paidfrom}", "", 0, 'L');
 //Receipt AMT in Text label block (7)
 $pdf->SetXY(10, 38);
 $pdf->SetFont("Times", "", 10);
 $pdf->Cell(40, 12, "The Sum Of :", "", 0, 'L');
 $pdf->SetFont("Times", "", 10);
 $pdf->Line($pdf->GetX(), $pdf->GetY() + 9, $pdf->GetX() + 150, $pdf->GetY() + 9);
 //$pdf->Line($pdf->GetX(),86,$pdf->GetX()+150,86);
 //echo ucwords("SAAAS SDA asDDS");
 $txt_sum = ucwords(strtolower(convertNumber($originalamt)));
 $pdf->MultiCell(0, 10, $currency_code . " " . $txt_sum, "", 'L');
 //Receipt AMT in Text label block (8)
 $pdf->SetXY(10, 45);
 $pdf->SetFont("Times", "", 10);
 $pdf->Cell(40, 10, "Description :", "", 0, 'L');
示例#12
0
文件: pdf.php 项目: tittyjacob/office
$pdf->Text($col + 20, $row += 9, 'Admission No.');
$pdf->SetFont('Arial', 'B', 10);
$pdf->Text($col + 100, $row, $admno);
$pdf->SetFont('Arial', '', 10);
$pdf->Text($col + 20, $row += 9, 'Course to which Admitted ');
$pdf->SetFont('Arial', 'B', 10);
$pdf->Text($col + 100, $row, $course);
$pdf->SetFont('Arial', '', 10);
$pdf->Text($col + 20, $row += 9, 'Branch of Study / Specialisation');
$pdf->SetFont('Arial', 'B', 10);
$pdf->Text($col + 100, $row, $branch);
$pdf->SetFont('Arial', '', 10);
$pdf->Text($col + 20, $row += 9, 'Reason for Leaving');
$pdf->SetFont('Arial', 'B', 10);
$pdf->Text($col + 100, $row, $reason);
$pdf->SetFont('Arial', '', 10);
$pdf->Text($col, $row += 15, 'Signature of Student  ');
$pdf->Text($col + 125, $row, 'Date : ');
$pdf->Line($col, $row += 5, 230 - 50, $row);
$pdf->SetFont('Arial', '', 10);
$pdf->Text($col, $row += 9, 'Last date of attendance :');
$pdf->Text($col + 100, $row, 'All liabilities cleared. TC may be issued');
$pdf->Text($col + 100, $row += 9, 'Character & Conduct ..........................');
$pdf->Text($col + 100, $row += 9, 'HOD :                     Date:');
$pdf->Text($col, $row += 15, 'T.C No.................issued on .............');
$pdf->Text($col, $row += 10, 'C.C No.................issued on .............');
$pdf->SetFont('Arial', 'B', 10);
$pdf->Text($col + 140, $row += 10, 'PRINCIPAL');
$pdf->SetFont('Arial', 'B', 10);
$pdf->Output('TC-Application-' . $name . '.pdf', 'D');
#}
示例#13
0
 function pdf()
 {
     $this->load->library(array('cfpdf'));
     $pdf = new FPDF('L', 'mm', 'A4');
     $pdf->AddPage();
     $pdf->Line(200, 37, 10, 37);
     $pdf->Line(200, 38, 10, 38);
     $pdf->Cell(10, 32, '', 0, 1, 'L');
     $pdf->SetFont('Arial', 'B', 11);
     $pdf->Cell(10, 14, 'No', 1, 0, 'L');
     $pdf->Cell(25, 14, 'NIM', 1, 0, 'L');
     $pdf->Cell(83, 14, 'Nama Mahasiswa', 1, 0, 'L');
     $pdf->Cell(72, 7, 'PEKA', 1, 2, 'L');
     $pdf->Cell(72, 7, 'PEKA', 1, 0, 'L');
     $pdf->Cell(72, 7, 'PEKA', 1, 0, 'L');
     $pdf->Cell(72, 7, 'SPP', 1, 2, 'L');
     $pdf->Cell(72, 7, 'PEKA', 1, 0, 'L');
     $pdf->Line(10, 10, 10, 10);
     $pdf->Output();
 }
            $sub = str_replace("<custas>", 'Custas: R$ ' . $custas, $sub);
        } else {
            $sub = str_replace("<custas>", '', $sub);
        }
        $pdf->AddPage();
        $pdf->Image('../images/header.jpg', '0', '0', '19', '3,04', 'JPG');
        $pdf->SetFont('times', 'B', 12);
        $pdf->Cell(19.2, 2.5, 'NÃO EMITIMOS E NEM VENDEMOS CERTIDÕES E SIM PRAZOS E SOLUÇÕES', 0, 1, 'C');
        require 'gera_imoveis_busca_' . $id_impresso . '.php';
        $pdf->SetFont('times', '', 12);
        $pdf->Write(0.5, $sub, '');
        $pdf->Write(0.5, '

                        ', '');
        $pdf->SetFont('times', 'B', 10);
        $pdf->Line(1, 25.5, 20, 25.5);
        $pdf->SetY(25.5);
        $pdf->Cell(0, 0.5, $responsavel_empresa, 0, 1, 'C');
        $rodape = $responsavel_endereco . ',
' . $responsavel_cidade . '-' . $responsavel_estado . ' CEP: ' . $responsavel_cep;
        $pdf->Cell(0, 0.5, $rodape, 0, 1, 'C');
        $rodape = 'Tel/Fax: ' . $responsavel_tel . '/' . $responsavel_fax . '

E-mail:' . $responsavel_email;
        $pdf->Cell(0, 0.5, $rodape, 0, 1, 'C');
        $rodape = 'www.cartoriopostal.com.br';
        $pdf->Cell(0, 0.5, $rodape, 0, 1, 'C');
        if ($anexar == 'on' and ($id_servico == '11' or $id_servico == '169' or $id_servico == '170')) {
            $pdf->Close();
            //imprime a saida
            $anexoDAO = new AnexoDAO();
示例#15
0
文件: fp.php 项目: sipsenachi/rep
$r2 = $s . "Partida nr:  " . $par . "  Nume:    " . $nume . "  CNP: " . $cnp;
$pdf->Write(7, $r2);
$pdf->SetFont('Helvetica', 'B', 10);
$pdf->SetXY(10, 20);
$r3 = $s . "CI/BI: " . $ser . "  " . $nr . " Elib  " . $delib . "  Pol.   " . $pol . "  din  " . $loca . "  Adresa: " . $adr;
$pdf->Write(7, $r3);
//$pdf->Write(7,'C.E.C.nr. ');
//$pdf->Write(7,$decp);
$r4 = $s . "Data inscrierii:  " . $dins . "  Sectia credit:  " . $discre . "  Sotul:  " . $sot . "  Sectia deces: " . $disdec;
$pdf->SetFont('Helvetica', 'B', 10);
$pdf->SetXY(10, 25);
$pdf->Write(7, $r4);
$r5 = $s . "Decizie nr.  " . $decp . "  Pensie lunara: " . $pen;
$pdf->SetXY(10, 30);
$pdf->Write(7, $r5);
$pdf->Line(10, 36, 200, 36);
$r6 = $s . "Data    Perioda   NR.ch.    Acordat   Restituit        Sold     Cot 1%   Cot Dec.   Dep ben.    Alt chel.   Total";
$pdf->SetXY(10, 35);
$pdf->Write(7, $r6);
$pdf->Line(10, 41, 200, 41);
$datai = date('Y-m-d');
$r7 = $s . "Sold la data de:  " . $datai . "                                    " . $soldi . "         " . $cot . "                              " . $depb;
$pdf->SetXY(10, 40);
$pdf->Write(7, $r7);
$pdf->Line(10, 46, 200, 46);
//Output the document
$pdf->Output('FP.pdf', 'I');
//$fh=fopen('fp.txt',"w+r");
//fwrite($fh,'CASA DE AJUTOR RECIPROC A PENSIONARILOR DIN FOCSANI ');
//fputs($fh,'                SI JUDETUL VRANCEA ');
//fputs($fh,$nume );
示例#16
0
$page = 1;
$count = "SELECT DISTINCT COUNT(B.`doc_number`) AS count\r\n            FROM material_transfers A, material_transfer_details B\r\n            WHERE A.doc_number='{$doc_num}'\r\n            AND B.doc_number = A.doc_number ;";
connectToDB();
$getCount = mysql_query($count) or die("Execution SQL; error");
$rowCount = mysql_fetch_array($getCount);
$items = $rowCount['count'];
$items = $items / $perpage;
$totalpage = ceil($items);
//////////////////////
/////////////////////
$pdf = new FPDF();
$pdf->AddPage('P', 'Letter');
$pdf->SetFont('Arial', '', 10);
$pdf->Image('UMW.jpeg', 10, 3, 180, 23);
//draw line
$pdf->Line(10, 50, 10, 220);
//outer
$pdf->Line(10, 50, 205, 50);
$pdf->Line(10, 220, 205, 220);
$pdf->Line(205, 50, 205, 220);
$pdf->Line(20, 50, 20, 220);
//1
$pdf->Line(44, 50, 44, 220);
//2
$pdf->Line(135, 50, 135, 220);
//3-qtty
$pdf->Line(150, 50, 150, 220);
//4-uom
$pdf->Line(164, 50, 164, 220);
//5
$pdf->Line(10, 57, 205, 57);
示例#17
0
<?php

extract($_GET);
require 'fpdf.php';
include_once 'class/DBConn.php';
$pdf = new FPDF();
$pdf->AddPage('P', 'Letter');
$pdf->SetFont('Arial', 'B', 10);
//draw line
$pdf->Line(10, 60, 10, 180);
//outer
$pdf->Line(10, 60, 205, 60);
$pdf->Line(10, 180, 205, 180);
$pdf->Line(205, 60, 205, 180);
$pdf->Line(20, 60, 20, 170);
//1
$pdf->Line(40, 60, 40, 170);
//2
$pdf->Line(135, 60, 135, 170);
//3-qtty
$pdf->Line(150, 60, 150, 170);
//4-uom
$pdf->Line(165, 60, 165, 180);
//5
$pdf->Line(185, 60, 185, 180);
//6
$pdf->Line(10, 70, 205, 70);
$pdf->Line(10, 170, 205, 170);
//table title
$pdf->Text(12, 64, 'NO');
$pdf->Text(22, 64, 'ITEM');
示例#18
0
    $no++;
}
// sertakan library FPDF dan bentuk objek
$pdf = new FPDF();
$pdf->AddPage('L', 'A4');
// tampil judul laporan
$pdf->SetFont('Arial', '', '12');
$pdf->Cell(0, 5, '', 0, 1, 'C');
$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
示例#19
0
文件: pdf.php 项目: llanosCoder/mybu
 $pdf->SetFont('Arial', 'B', 8);
 $pdf->SetXY(226, 25);
 $pdf->Write(1, "______________");
 //==========================================
 $pdf->SetFont('Arial', '', 10);
 $pdf->SetXY(10, 50);
 $pdf->Write(1, "NOTAS : ");
 $pdf->SetFont('Arial', '', 9);
 $pdf->SetXY(40, 60);
 $pdf->Write(1, "*  La columna 'Benef (Adic.)', muestra el tipo de seguro complementario de salud optado por el Socio y el número de cargas adicionales. ");
 $pdf->SetFont('Arial', '', 9);
 $pdf->SetXY(40, 65);
 $pdf->Write(1, "** En la columna 'Dscto Efectivo', Indicar el valor efectivamente descontado, sólo cuando sea distinto al valor Total a descontar. ");
 $pdf->SetFont('Arial', '', 9);
 $pdf->SetDrawColor(0, 0, 0);
 $pdf->Line(10, 80, 270, 80);
 // linea arriba
 $pdf->Line(10, 95, 101, 95);
 // linea siguiente
 $pdf->Line(101, 80, 101, 130);
 // linea cierra cuadrado anterior
 $pdf->Line(225, 80, 225, 130);
 // lineas cierre al medio
 $pdf->Line(270, 80, 270, 130);
 // linea cierre final
 $pdf->Line(10, 80, 10, 130);
 //linea izquierda
 $pdf->Line(10, 130, 270, 130);
 //linea abajo
 $pdf->SetXY(10, 87);
 $pdf->Write(1, " 1.- Efectivo      Monto \$         _______________________");
$pdf->SetXY(197.5, 37);
$pdf->Write(5, $_POST["day"]);
$pdf->SetXY(205, 37);
$pdf->Write(5, $_POST["month"]);
$pdf->SetXY(225.4, 37);
$pdf->Write(5, substr($_POST["year"], 2, 2));
$pdf->SetXY(196, 63);
if ($_POST["search_finance"] == 'b') {
    $pdf->Write(5, "за державним замовленням");
}
if ($_POST["search_finance"] == 'c') {
    $pdf->Write(5, "за рахунок коштів фізичних, юридичних осіб");
}
$pdf->SetXY(222, 51.5);
$pdf->Write(5, strtolower($_POST["search_study_type"]));
$pdf->Line(11, 154, 11, 200);
$pdf->Line(21.5, 154, 21.5, 200);
$pdf->Line(89, 153, 89, 200);
$pdf->Line(114.5, 153, 114.5, 200);
$pdf->Line(133, 153, 133, 200);
$pdf->Line(152, 153, 152, 200);
$pdf->Line(161, 153, 161, 200);
$pdf->Line(176, 153, 176, 200);
$pdf->Line(185, 153, 185, 200);
$pdf->Line(194, 153, 194, 200);
$pdf->Line(287, 154, 287, 200);
$pdf->Line(11, 163, 285, 163);
/*$pdf->SetXY (10,10);
$pdf->Write(5,$study_type);
$pdf->Write(5,count($spc_list[$study_type]));
*/
示例#21
0
$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(10, 5, $no, 1, 0, 'C');
    $pdf->Cell(40, 5, $kd_mapel, 1, 0, 'C');
    $pdf->Cell(40, 5, $mapel, 1, 0, 'C');
    $pdf->Cell(20, 5, $kelas, 1, 0, 'C');
    $pdf->Cell(30, 5, $nilai, 1, 0, 'C');
    $pdf->Cell(30, 5, $nilai, 1, 0, 'C');
    $y = 65 + 5 * $no;
    $no++;
    $pdf->SetXY(15, $y);
}
//fungsi show halaman
$pdf->SetY(-15);
//buat garis horizontal
$pdf->Line(7, $pdf->GetY(), 200, $pdf->GetY());
//Arial italic 9
$pdf->SetFont('Arial', 'I', 7);
//nomor halaman
$pdf->Cell(0, -10, 'Halaman ' . $pdf->PageNo() . ' dari {nb}', 0, 0, 'R');
$pdf->Output();
示例#22
0
    $no++;
}
// sertakan library FPDF dan bentuk objek
$pdf = new FPDF();
$pdf->AddPage('L', 'A3');
// tampil judul laporan
$pdf->SetFont('Arial', '', '12');
$pdf->Cell(0, 5, '', 0, 1, 'C');
$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', 48, 5, 32, 32);
// tampil garis line
$pdf->Line(45, 38, 380, 38);
$pdf->Line(45, 39, 380, 39);
$pdf->Ln();
$pdf->Ln();
$pdf->Cell(0, 5, '', 0, 1, 'C');
$pdf->Cell(0, 5, 'Laporan Tukar Jadwal Pegawai Tetap, Bulan ' . $bln . ' Tahun ' . $tahun, 0, 1, 'C');
$pdf->Ln();
$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
示例#23
0
$tanggal = date("d - m - Y");
// support pengangkatan pegawai baru end
// sertakan library FPDF dan bentuk objek
$pdf = new FPDF();
$pdf->AddPage('P', 'legal');
// tampil judul laporan
$pdf->SetFont('Arial', '', '12');
$pdf->Cell(0, 5, '', 0, 1, 'C');
$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', 18, 5, 32, 32);
// tampil garis line
$pdf->Line(15, 38, 200, 38);
$pdf->Line(15, 39, 200, 39);
$pdf->Ln();
// tampil judul form
$pdf->SetFont('Arial', 'B', '13');
$pdf->Cell(0, 10, 'SURAT KEPUTUSAN', 0, 1, 'C');
$pdf->Line(131, 47, 85, 47);
$pdf->Cell(0, 2, 'DIREKTUR RUMAH SAKIT BERSALIN BUAH DELIMA', 0, 1, 'C');
$pdf->Line(166, 53, 50, 53);
$pdf->Ln();
$pdf->SetFont('Arial', '', '12');
$pdf->Cell(0, 5, $nopengangkatan . $tahun, 0, 1, 'C');
$pdf->Ln();
$pdf->SetFont('Arial', 'B', '12');
$pdf->Cell(0, 5, 'Tentang ', 0, 1, 'C');
$pdf->Cell(0, 5, 'Kenaikan Jabatan Pegawai Tetap', 0, 1, 'C');
$pdf = new FPDF("L", "cm", "A4");
$pdf->SetMargins(2, 1, 1);
$pdf->AliasNbPages();
$pdf->AddPage();
$pdf->SetFont('Times', 'B', 11);
$pdf->Image('../logo/malasngoding.png', 1, 1, 2, 2);
$pdf->SetX(4);
$pdf->MultiCell(19.5, 0.5, 'KIOS MALASNGODING', 0, 'L');
$pdf->SetX(4);
$pdf->MultiCell(19.5, 0.5, 'Telpon : 0038XXXXXXX', 0, 'L');
$pdf->SetFont('Arial', 'B', 10);
$pdf->SetX(4);
$pdf->MultiCell(19.5, 0.5, 'JL. KIOS MALASNGODING', 0, 'L');
$pdf->SetX(4);
$pdf->MultiCell(19.5, 0.5, 'website : www.malasngoding.com email : malasngoding@gmail.com', 0, 'L');
$pdf->Line(1, 3.1, 28.5, 3.1);
$pdf->SetLineWidth(0.1);
$pdf->Line(1, 3.2, 28.5, 3.2);
$pdf->SetLineWidth(0);
$pdf->ln(1);
$pdf->SetFont('Arial', 'B', 14);
$pdf->Cell(0, 0.7, 'Laporan Data Penjualan Barang', 0, 0, 'C');
$pdf->ln(1);
$pdf->SetFont('Arial', 'B', 10);
$pdf->Cell(5, 0.7, "Di cetak pada : " . date("D-d/m/Y"), 0, 0, 'C');
$pdf->ln(1);
$pdf->Cell(6, 0.7, "Laporan Penjualan pada : " . $_GET['tanggal'], 0, 0, 'C');
$pdf->ln(1);
$pdf->Cell(1, 0.8, 'NO', 1, 0, 'C');
$pdf->Cell(3, 0.8, 'Tanggal', 1, 0, 'C');
$pdf->Cell(6, 0.8, 'Nama Barang', 1, 0, 'C');
$pdf = new FPDF();
//set document properties
$pdf->SetAuthor('Alexandr Slovinskiy');
$pdf->SetTitle('Exam Card');
//set font for the entire document
$pdf->AddFont('Times', '', 'times.php');
$pdf->SetFont('Times', '');
$pdf->SetTextColor(0, 0, 0);
//set up a page
$pdf->AddPage('P');
$pdf->SetDisplayMode(real, 'default');
//display the title with a border around it
//Set x and y position for the main text, reduce font size and write content
$pdf->Image('img/form_1_04_1.jpg', 5, 5, 205);
if ($row['study_type'] == "Денна") {
    $pdf->Line(58, 53.5, 65, 53.5);
}
if ($row['study_type'] == "Заочна") {
    $pdf->Line(67, 53.5, 76, 53.5);
}
$pdf->SetXY(52, 64);
$pdf->SetFont('Times', '', 10);
$pdf->Write(5, $row['ab_id']);
$pdf->SetFontSize(9);
$pdf->SetXY(22, 70);
$pdf->Write(5, $row['lastname']);
$pdf->SetXY(15, 74.5);
$pdf->Write(5, $row['firstname']);
$pdf->SetXY(24, 78);
$pdf->Write(5, $row['patronymic']);
$pdf->SetFontSize(8);
示例#26
-1
 public function pdfcreateAction()
 {
     require "fpdf/fpdf.php";
     $order_id = $_GET['order_id'];
     $img_path = $_GET['img_path'];
     $count = $_GET['count'];
     $customer_email = $_GET['customer_email'];
     $customer = Mage::getModel("customer/customer");
     $customer->setWebsiteId(Mage::app()->getWebsite()->getId());
     $customer->loadByEmail($customer_email);
     $orderId = Mage::getModel('sales/order')->loadByIncrementId($order_id)->getEntityId();
     $order = Mage::getModel('sales/order')->load($orderId);
     $billing_address = $order->getBillingAddress();
     //print_r($billing_address->getData());
     $model = Mage::getModel('rcredit/rcredit');
     $order_details = $model->orderhistory($customer_email, $count);
     $customer_info = $model->customercycledetails($customer_email);
     //print_r($customer_info);
     $date = new DateTime($customer_info[pay_date]);
     $pay_date = $date->format('d-m-Y');
     $pdf = new FPDF();
     $pdf->AddPage();
     $linestyle = array('width' => 0.1, 'cap' => 'butt', 'join' => 'miter', 'dash' => '', 'phase' => 10, 'color' => array(255, 0, 0));
     $pdf->SetFont('Times', '', 11);
     $pdf->Cell(200, 10, 'Corporate Credit Statement', 2, 2, 'C');
     $pdf->SetFont('Times', 'B', 8);
     $pdf->Line(150, 17, 180, 17, $linestyle);
     $pdf->SetX(350);
     $pdf->SetY(13);
     $pdf->Cell(310, 5, 'Customer Billing Address', 2, 2, 'C');
     $pdf->SetFont('Times', '', 8);
     $pdf->SetX(150);
     $pdf->Cell(342, 5, $billing_address[firstname] . '.' . $billing_address[lastname], 2, 2, 'L');
     $pdf->Cell(342, 6, $billing_address[street], 2, 2, 'L');
     $pdf->Cell(342, 7, $billing_address[city] . '.' . $billing_address[country_id] . '-' . $billing_address[postcode], 2, 2, 'L');
     $pdf->Image($img_path, 10, 10, 31, 20, 'PNG', '', '', false, 300, '', false, false, 0, false, false, false);
     $pdf->SetY(20);
     $pdf->SetFont('Times', '', 8);
     $pdf->Line(5, 35, 200, 35, $linestyle);
     // Company Account Numbers
     $pdf->SetX(20);
     $pdf->SetY(28);
     $pdf->SetFont('Times', 'B', 8);
     $pdf->Cell(0, 20, 'VAT/TIN :  ', 0, 0, 'L');
     $pdf->SetX(25);
     $pdf->SetFont('Times', '', 8);
     $pdf->Cell(0, 20, ' 29471119182', 0, 0, 'L');
     $pdf->SetX(85);
     $pdf->SetFont('Times', 'B', 8);
     $pdf->Cell(0, 20, 'CST No:  ', 0, 0, 'L');
     $pdf->SetX(98);
     $pdf->SetFont('Times', '', 8);
     $pdf->Cell(0, 20, ' 29471119182', 0, 0, 'L');
     $pdf->SetX(150);
     $pdf->SetFont('Times', 'B', 8);
     $pdf->Cell(0, 20, 'CIN No :  ', 0, 0, 'L');
     $pdf->SetX(164);
     $pdf->SetFont('Times', '', 8);
     $pdf->Cell(0, 20, ' U52100KA2012PTC066880', 0, 0, 'L');
     $pdf->Line(5, 40, 200, 40, $linestyle);
     //End of company account numbers
     // Starting of customer details
     $pdf->SetX(20);
     $pdf->SetY(33);
     $pdf->SetFont('Times', 'B', 8);
     $pdf->Cell(0, 20, 'Email :  ', 0, 0, 'L');
     $pdf->SetX(25);
     $pdf->SetFont('Times', '', 8);
     $pdf->Cell(0, 20, $customer_email, 0, 0, 'L');
     $pdf->SetX(85);
     $pdf->SetFont('Times', 'B', 8);
     $pdf->Cell(0, 20, 'Company Name:  ', 0, 0, 'L');
     $pdf->SetX(110);
     $pdf->SetFont('Times', '', 8);
     $pdf->Cell(0, 20, $customer_info[company_name], 0, 0, 'L');
     //$pdf->SetX(150);
     //$pdf->SetFont('Times','B',8);
     //$pdf->Cell(0,20,'Account Manager :  ', 0,0,'L');
     //$pdf->SetX(164);
     //$pdf->SetFont('Times','',8);
     //$pdf->Cell(0,20,' AASDV846SV654V', 0,0,'L');
     $pdf->Line(5, 45, 200, 45, $linestyle);
     //End of customer details
     // Starting of customer details
     $pdf->SetX(20);
     $pdf->SetY(38);
     $pdf->SetFont('Times', 'B', 8);
     $pdf->Cell(0, 20, 'Payment Due Date :  ', 0, 0, 'L');
     $pdf->SetX(35);
     $pdf->SetFont('Times', '', 8);
     $pdf->Cell(0, 20, $pay_date, 0, 0, 'L');
     $pdf->SetX(85);
     $pdf->SetFont('Times', 'B', 8);
     $pdf->Cell(0, 20, 'Availed Credit:  ', 0, 0, 'L');
     $pdf->SetX(110);
     $pdf->SetFont('Times', '', 8);
     $pdf->Cell(0, 20, 'Rs ' . $customer_info[utlized_amt] . '/-', 0, 0, 'L');
     $pdf->Line(5, 50, 200, 50, $linestyle);
     //End of customer details
     $pdf->SetX(30);
     $pdf->SetFont('Times', '', 8);
     $pdf->Cell(0, 30, 'Dear ' . $firstname . ',', 0, 0, 'L');
     //$pdf->SetX(20);
     $pdf->SetY(55);
     $pdf->Cell(0, 1, 'Thank you for your interest in buying from us. Please find the below details of your selected products', 0, 0, 'L');
     $i = 10;
     $pdf->SetFont('Times', '', 6);
     $pdf->SetX(5);
     $pdf->SetY(65);
     $pdf->Cell(15, 10, 'Order ID', 1, 0, 'C');
     $pdf->Cell(20, 10, 'Order Date', 1, 0, 'C');
     $pdf->Cell(20, 10, 'Order Amount', 1, 0, 'C');
     $pdf->Cell(20, 10, 'Credit Availed', 1, 0, 'C');
     $pdf->Cell(20, 10, 'Order Status', 1, 0, 'C');
     $pdf->Cell(20, 10, 'Delivery Date', 1, 0, 'C');
     $pdf->Cell(25, 10, 'Payment Status', 1, 0, 'C');
     $pdf->Cell(20, 10, 'Payment Date', 1, 0, 'C');
     $pdf->Cell(30, 10, 'Payment Details', 1, 0, 'C');
     //$pdf->SetX(20);
     $pdf->SetX(5);
     $pdf->SetY(75);
     $pdf->SetX(20);
     foreach ($order_details as $details) {
         $order_date = explode(" ", $details['order_date']);
         $i = $i + 1;
         $pdf->SetX(10);
         $pdf->Cell(15, $i, $details['order_id'], 1, 0, 'C');
         $pdf->Cell(20, $i, $order_date[0], 1, 0, 'C');
         $pdf->Cell(20, $i, $details['order_value'], 1, 0, 'C');
         $pdf->Cell(20, $i, $details['utlized_amt'], 1, 0, 'C');
         $pdf->Cell(20, $i, $details['action'], 1, 0, 'C');
         $pdf->Cell(20, $i, $details['order_complete_date'], 1, 0, 'C');
         $pdf->Cell(25, $i, $details['pay_status'], 1, 0, 'C');
         $pdf->Cell(20, $i, $details['paid_date'], 1, 0, 'C');
         $pdf->Cell(30, $i, $details['trans_details'], 1, 1, 'C');
         //$pdf->SetX(20);
     }
     $pdf->SetFont('Times', 'B', 8);
     $pdf->SetX(80);
     $pdf->Cell(100, 20, 'Total : Rs.' . $details['utlized_amt'] . '/-', 0, 0, 'R');
     $pdf->Output('Shopper Credit Invoice.pdf', 'D');
 }
        $minx = $p->x;
    }
    if ($p->x > $maxx) {
        $maxx = $p->x;
    }
    if ($p->y < $miny) {
        $miny = $p->y;
    }
    if ($p->y > $maxy) {
        $maxy = $p->y;
    }
}
$w = $maxx - $minx;
$h = $maxy - $miny;
$pdf = new FPDF('P', $unit, array($w, $h));
$pdf->AddPage();
//output a line for each string
foreach ($guitar['strings'] as $string) {
    $pdf->Line($string->end1->x, $string->end1->y, $string->end2->x, $string->end2->y);
}
//output a line for each fretboard edge
$pdf->Line($guitar['meta'][0]->end1->x, $guitar['meta'][0]->end1->y, $guitar['meta'][0]->end2->x, $guitar['meta'][0]->end2->y);
$pdf->Line($guitar['meta'][sizeof($guitar['meta']) - 1]->end1->x, $guitar['meta'][sizeof($guitar['meta']) - 1]->end1->y, $guitar['meta'][sizeof($guitar['meta']) - 1]->end2->x, $guitar['meta'][sizeof($guitar['meta']) - 1]->end2->y);
//output a line for each fret on each string
$it = processGuitar4svg();
foreach ($it['strings'] as $string) {
    foreach ($string as $fret) {
        $pdf->Line($fret['fret']->end1->x(), $fret['fret']->end1->y(), $fret['fret']->end2->x(), $fret['fret']->end2->y());
    }
}
$pdf->Output('fretboard.pdf', 'D');
示例#28
-1
							
    					$column_code1 = $column_code1.$row1."\n";
    					$column_code2 = $column_code2.$row2."\n";
    					$column_code3 = $column_code3.$row3."\n";
    					$column_code4 = $column_code4.$row4."\n";
    					$column_code5 = $column_code5.$row5."\n";
    					$column_code6 = $column_code6.$row6."\n";
    					$column_code7 = $column_code7.$row7."\n";
    					$column_code8 = $column_code8.$row8."\n";
    					$column_code9 = $column_code9.$row9."\n";
    					$column_code10 = $column_code10.$row10."\n";
    					$column_code11 = $column_code11.$row11."\n";
    					
					}  */
$pdf->SetLineWidth(2);
$pdf->Line(0, 45, 360, 45);
$pdf->SetLineWidth(0);
$pdf->Cell(270, 5, '', 0, 1, 'C');
$pdf->Cell(270, 5, '', 0, 1, 'C');
$Y_Label_position = 50;
$Y_Table_Position = 55;
$pdf->SetFont('Arial', 'B', 8);
$pdf->SetY($Y_Label_position);
$pdf->SetX(5);
$pdf->Cell(15, 5, 'AMOUNT PAID', 1, 0, 'C');
$pdf->SetX(20);
$pdf->Cell(50, 5, 'DATE', 1, 0, 'C');
$pdf->SetX(70);
$pdf->Cell(50, 5, 'O.R. NUMBER', 1, 0, 'C');
$pdf->SetX(120);
$pdf->Cell(30, 5, 'STICKER NUMBER', 1, 0, 'C');
示例#29
-1
        if ($counter > count($amt)) {
            break;
        }
    } while ($w < $MAX_LIMIT);
    $str2 = "";
    $sep = "";
    for ($i = $counter; $i < count($amt); $i++) {
        $str2 .= $sep . $amt[$i];
        $w = $pdf->GetStringWidth($str2);
        $sep = " ";
    }
    $pdf->Text(11.4, 0.9, $_GET['date']);
    $pdf->Text(1.1, 2.6, $_GET['pay']);
    $pdf->Text(1.6, 3.3, $str1);
    $pdf->Text(0.4, 4.1, $str2);
    $pdf->Line(13, 2.65, 14.8, 2.65);
    //cross the 'or bearer' text
    $pdf->SetFont('Arial', 'B', 12);
    $pdf->Text(11.1, 4.1, number_format($_GET['amount']));
    $pdf->Output("cheque.pdf", "D");
} else {
    ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<link rel="shortcut icon" href="../images/logo_icon.gif">
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<link href="../stylesheets/style.css" rel="stylesheet" type="text/css" />
	<title><?php 
    echo $_SESSION['companyname'];
    ?>
示例#30
-1
 function PrintChecks()
 {
     ////////////////////////////
     // label-specific variables
     $page_width = 8.5;
     $page_height = 11;
     $top_margin = 0;
     $left_margin = 2.5;
     $columns = 1;
     $gutter = 3 / 16;
     $rows = 3;
     // only used for making page breaks, no position calculations
     $label_height = 2.85;
     $label_width = 6;
     // cell margins
     $cell_left = 0.25;
     $cell_top = 0.25;
     $cell_bot = 0.25;
     //
     ////////////////////////////
     $img_ratio = 1.4;
     // loqisaur
     $img_ratio = 0.47;
     // cyan
     $img_ratio = 1.71;
     // marvelous labs
     $logo_width = 0.66;
     // loqisaur
     $logo_width = 0.2;
     // cyan
     $logo_width = 0.5;
     // marvelous labs
     $pdf = new FPDF('P', 'in', array($page_width, $page_height));
     $pdf->AddFont('Twcen', '', 'twcen.php');
     $pdf->AddFont('Micr', '', 'micr.php');
     $pdf->AddFont('Courier', '', 'courier.php');
     $pdf->SetMargins($left_margin, $top_margin);
     $pdf->SetDisplayMode("fullpage", "continuous");
     $pdf->AddPage();
     $lpos = 0;
     foreach ($this->checks as $check) {
         $pos = $lpos % ($rows * $columns);
         // calculate coordinates of top-left corner of current cell
         //    margin        cell offset
         $x = $left_margin + $pos % $columns * ($label_width + $gutter);
         //    margin        cell offset
         $y = $top_margin + floor($pos / $columns) * $label_height;
         /////////////////
         // set up check template
         $pdf->SetFont('Twcen', '', 11);
         // print check number
         $pdf->SetXY($x + 5.25, $y + 0.33);
         $pdf->Cell(1, 11 / 72, $check['check_number'], 0, 'R');
         $logo_offset = 0;
         // offset to print name if logo is inserted
         if (array_key_exists('logo', $check) && $check['logo'] != "") {
             // logo should be: 0.71" x 0.29"
             $logo_offset = $logo_width + 0.005;
             // width of logo
             $pdf->Image($check['logo'], $x + $cell_left, $y + $cell_top + 0.12, $logo_width);
         }
         $pdf->SetFont('Twcen', '', 7);
         // name
         $pdf->SetXY($x + $cell_left + $logo_offset, $y + $cell_top + 0.1);
         $pdf->SetFont('Twcen', '', 10);
         $pdf->Cell(2, 10 / 72, $check['from_name'], 0, 2);
         $pdf->SetFont('Twcen', '', 7);
         $pdf->Cell(2, 7 / 72, $check['from_address1'], 0, 2);
         $pdf->Cell(2, 7 / 72, $check['from_address2'], 0, 2);
         // date
         $pdf->Line($x + 3.5, $y + 0.58, $x + 3.5 + 1.2, $y + 0.58);
         $pdf->SetXY($x + 3.5, $y + 0.48);
         $date_str = $this->matchcase($check['from_name'], "date");
         $pdf->Cell(1, 7 / 72, $date_str);
         // pay to the order of
         $pdf->Line($x + $cell_left, $y + 1.1, $x + $cell_left + 4.1, $y + 1.1);
         $pdf->SetXY($x + $cell_left, $y + 0.88);
         $pay_str = $this->matchcase($check['from_name'], "pay to the order of");
         $pdf->MultiCell(0.6, 7 / 72, $pay_str, '', '', 'L');
         // amount box
         $pdf->Rect($x + 4.5, $y + 0.83, 1.1, 0.25);
         // dollars
         $pdf->Line($x + $cell_left, $y + 1.5, $x + $cell_left + 5.37, $y + 1.5);
         $pdf->SetXY($x + $cell_left + 4.37, $y + 1.4);
         $dollar_str = $this->matchcase($check['from_name'], "dollars");
         $pdf->Cell(1, 7 / 72, $dollar_str, '', '', 'R');
         // bank info
         $pdf->SetXY($x + $cell_left, $y + 1.6);
         $pdf->Cell(2, 7 / 72, $check['bank_1'], 0, 2);
         $pdf->Cell(2, 7 / 72, $check['bank_2'], 0, 2);
         $pdf->Cell(2, 7 / 72, $check['bank_3'], 0, 2);
         $pdf->Cell(2, 7 / 72, $check['bank_4'], 0, 2);
         // memo
         $pdf->Line($x + $cell_left, $y + 2.225, $x + $cell_left + 2.9, $y + 2.225);
         $pdf->SetXY($x + $cell_left, $y + 2.125);
         $memo_str = $this->matchcase($check['from_name'], "memo");
         $pdf->Cell(1, 7 / 72, $memo_str);
         // signature line
         $pdf->Line($x + 3.25, $y + 2.225, $x + 3.25 + 2.375, $y + 2.225);
         ////////////////////////
         // fill in values for this check
         $pdf->SetFont('Courier', '', 11);
         // date
         if ($check['date'] != "") {
             $pdf->SetXY($x + 3.5 + 0.3, $y + 0.38);
             $pdf->Cell(1, 0.25, $check['date']);
         }
         // pay to
         if ($check['pay_to'] != "") {
             $pdf->SetXY($x + $cell_left + 0.5, $y + 0.88);
             $pdf->Cell(1, 0.25, $check['pay_to']);
         }
         // amount
         if ($check['amount'] > 0) {
             $dollars = intval($check['amount']);
             $cents = round(($check['amount'] - $dollars) * 100);
             //$dollars_str = TextualNumber::GetText($dollars);
             $numtxt = new TextualNumber($dollars);
             $dollars_str = $numtxt->numToWords($dollars);
             $amt_string = "***" . ucfirst(strtolower($dollars_str)) . " dollars";
             if ($cents > 0) {
                 $amt_string .= " and " . $cents . "/100";
             } else {
                 $amt_string .= " and 00/100";
             }
             $amt_string .= "***";
             $pdf->SetFont('Courier', '', 9);
             $pdf->SetXY($x + $cell_left, $y + 1.28);
             $pdf->Cell(1, 0.25, $amt_string);
             #$amt = '$'.sprintf("%01.2f",$check['amount']);
             $amt = '$' . number_format($check['amount'], 2);
             $pdf->SetXY($x + 4.5 + 0.06, $y + 0.83);
             $pdf->Cell(1, 0.25, $amt);
         }
         // memo
         $pdf->SetFont('Courier', '', 8);
         $pdf->SetXY($x + $cell_left + 0.3, $y + 2.02);
         $pdf->Cell(1, 0.25, $check['memo']);
         $pdf->SetFont('Courier', '', 11);
         // routing and account number
         $pdf->SetFont('Micr', '', 10);
         $routingstring = "t" . $check['routing_number'] . "t" . $check['account_number'] . "o" . $check['check_number'];
         if (array_key_exists('codeline', $check)) {
             $routingstring = $check['codeline'];
         }
         $pdf->SetXY($x + $cell_left, $y + 2.47);
         $pdf->Cell(5, 10 / 72, $routingstring);
         // signature
         if (substr($check['signature'], -3) == 'png') {
             $sig_offset = 1.75;
             // width of signature
             $pdf->Image($check['signature'], $x + $cell_left + 3.4, $y + 1.88, $sig_offset);
         } else {
             $pdf->SetFont('Arial', 'i', 10);
             if ($check['signature'] != "") {
                 $pdf->SetXY($x + $cell_left + 3.4, $y + 2.01);
                 $pdf->Cell(1, 0.25, $check['signature']);
             }
         }
         // pre-authorized disclaimer
         $pdf->SetFont('Arial', '', 6);
         if (isset($check['pre_auth'])) {
             $pdf->SetXY($x + $cell_left + 3.3, $y + 2.155);
             $pdf->Cell(1, 0.25, "This check is pre-authorized by your depositor");
         }
         if ($pos == $rows * $columns - 1 && !($lpos == count($this->checks) - 1)) {
             $pdf->AddPage();
         }
         $lpos++;
     }
     $pdf->Output();
 }