当前位置: 首页>>代码示例>>PHP>>正文


PHP FPDF::MultiCell方法代码示例

本文整理汇总了PHP中FPDF::MultiCell方法的典型用法代码示例。如果您正苦于以下问题:PHP FPDF::MultiCell方法的具体用法?PHP FPDF::MultiCell怎么用?PHP FPDF::MultiCell使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在FPDF的用法示例。


在下文中一共展示了FPDF::MultiCell方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: PurchaseOrderModel

 function export_order($id)
 {
     global $FANNIE_OP_DB, $FANNIE_ROOT;
     $dbc = FannieDB::get($FANNIE_OP_DB);
     $order = new PurchaseOrderModel($dbc);
     $order->orderID($id);
     $order->load();
     $items = new PurchaseOrderItemsModel($dbc);
     $items->orderID($id);
     $vendor = new VendorsModel($dbc);
     $vendor->vendorID($order->vendorID());
     $vendor->load();
     $contact = new VendorContactModel($dbc);
     $contact->vendorID($order->vendorID());
     $contact->load();
     if (!class_exists('FPDF')) {
         include_once $FANNIE_ROOT . 'src/fpdf/fpdf.php';
     }
     $pdf = new FPDF('P', 'mm', 'Letter');
     $pdf->AddPage();
     $pdf->SetFont('Arial', '', '12');
     $pdf->Cell(100, 5, 'Vendor: ' . $vendor->vendorName(), 0, 0);
     $pdf->Cell(100, 5, 'Date: ' . date('Y-m-d'), 0, 0);
     $pdf->Ln();
     $pdf->Cell(100, 5, 'Phone: ' . $contact->phone(), 0, 0);
     $pdf->Cell(100, 5, 'Fax: ' . $contact->fax(), 0, 0);
     $pdf->Ln();
     $pdf->Cell(100, 5, 'Email: ' . $contact->email(), 0, 0);
     $pdf->Cell(100, 5, 'Website: ' . $contact->website(), 0, 0);
     $pdf->Ln();
     $pdf->MultiCell(0, 5, "Ordering Info:\n" . $contact->notes(), 'B');
     $pdf->Ln();
     $cur_page = 0;
     $pdf->SetFontSize(10);
     foreach ($items->find() as $obj) {
         if ($cur_page != $pdf->PageNo()) {
             $cur_page = $pdf->PageNo();
             $pdf->Cell(25, 5, 'SKU', 0, 0);
             $pdf->Cell(20, 5, 'Order Qty', 0, 0);
             $pdf->Cell(30, 5, 'Brand', 0, 0);
             $pdf->Cell(65, 5, 'Description', 0, 0);
             $pdf->Cell(20, 5, 'Case Size', 0, 0);
             $pdf->Cell(20, 5, 'Est. Cost', 0, 0);
             $pdf->Ln();
         }
         $pdf->Cell(25, 5, $obj->sku(), 0, 0);
         $pdf->Cell(20, 5, $obj->quantity(), 0, 0, 'C');
         $pdf->Cell(30, 5, $obj->brand(), 0, 0);
         $pdf->Cell(65, 5, $obj->description(), 0, 0);
         $pdf->Cell(20, 5, $obj->caseSize(), 0, 0, 'C');
         $pdf->Cell(20, 5, sprintf('%.2f', $obj->caseSize() * $obj->unitCost() * $obj->quantity()), 0, 0);
         $pdf->Ln();
     }
     $pdf->Output('order_export.pdf', 'D');
 }
开发者ID:phpsmith,项目名称:IS4C,代码行数:55,代码来源:DefaultPdfPoExport.php

示例2: post_id_upc_terms_handler

 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');
//.........这里部分代码省略.........
开发者ID:phpsmith,项目名称:IS4C,代码行数:101,代码来源:CheckCouponMailing.php

示例3: generarFolleto

 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");
 }
开发者ID:xrlopez,项目名称:ABP,代码行数:53,代码来源:ConcursoController.php

示例4: drawPDF

 public function drawPDF()
 {
     $pdf = new \FPDF('L', 'mm', 'Letter');
     $pdf->SetMargins(3.175, 3.175, 3.175);
     $pdf->SetAutoPageBreak(false);
     if (\COREPOS\Fannie\API\FanniePlugin::isEnabled('CoopDealsSigns')) {
         $this->font = 'Gill';
         $this->alt_font = 'GillBook';
         define('FPDF_FONTPATH', dirname(__FILE__) . '/../../../modules/plugins2.0/CoopDealsSigns/noauto/fonts/');
         $pdf->AddFont('Gill', '', 'GillSansMTPro-Medium.php');
     }
     $pdf->SetFont($this->font, '', 16);
     $data = $this->loadItems();
     $width = 136.52;
     $height = 105;
     $top = 90;
     $left = 15;
     $effective_width = $width - 2 * $left;
     foreach ($data as $item) {
         $pdf->AddPage();
         $column = 1;
         // right aligned
         $price = $this->printablePrice($item);
         $pdf->SetXY($left + $width * $column, $top);
         $pdf->SetFontSize($this->SMALL_FONT);
         $pdf->Cell($effective_width, 10, $item['brand'], 0, 1, 'C');
         $pdf->SetX($left + $width * $column);
         $pdf->SetFontSize($this->MED_FONT);
         $pdf->MultiCell($effective_width, 12, $item['description'], 0, 'C');
         $pdf->SetX($left + $width * $column);
         $pdf->SetFontSize($this->BIG_FONT);
         $pdf->Cell($effective_width, 25, $price, 0, 1, 'C');
         $y_pos = $pdf->GetY();
         if ($item['startDate'] != '' && $item['endDate'] != '') {
             // intl would be nice
             $datestr = $this->getDateString($item['startDate'], $item['endDate']);
             $pdf->SetXY($left + $width * $column, $top + ($height - 40));
             $pdf->SetFontSize($this->SMALL_FONT);
             $pdf->Cell($effective_width, 20, $datestr, 0, 1, 'R');
         }
         if ($item['originName'] != '') {
             $pdf->SetXY($left + $width * $column, $y_pos);
             $pdf->SetFontSize($this->SMALL_FONT);
             if (strlen($item['originName']) < 50) {
                 $pdf->Cell($effective_width, 20, $item['originName'], 0, 1, 'L');
             } else {
                 $pdf->Cell($effective_width, 20, $item['originShortName'], 0, 1, 'L');
             }
         }
     }
     $pdf->Output('WfcProdSingle.pdf', 'I');
 }
开发者ID:phpsmith,项目名称:IS4C,代码行数:52,代码来源:WfcProduceSingle.php

示例5: EWD_UFAQ_Export_To_PDF

function EWD_UFAQ_Export_To_PDF()
{
    require_once EWD_UFAQ_CD_PLUGIN_PATH . '/FPDF/fpdf.php';
    if ($Category != "EWD_UFAQ_ALL_CATEGORIES") {
        $category_array = array('taxonomy' => 'ufaq-category', 'field' => 'slug', 'terms' => $Category->slug);
    }
    $params = array('posts_per_page' => -1, 'post_type' => 'ufaq');
    $faqs = get_posts($params);
    $PDFPasses = array("FirstPageRun", "SecondPageRun", "Final");
    foreach ($PDFPasses as $PDFRun) {
        $pdf = new FPDF();
        $pdf->AddPage();
        if ($PDFRun == "SecondPageRun" or $PDFRun == "Final") {
            $pdf->SetFont('Arial', 'B', 14);
            $pdf->Cell(20, 10, "Page #");
            $pdf->Cell(20, 10, "Article Title");
            $pdf->Ln();
            $pdf->SetFont('Arial', '', 12);
            foreach ($ToC as $entry) {
                $pdf->Cell(20, 5, "  " . $entry['page']);
                $pdf->MultiCell(0, 5, $entry['title']);
                $pdf->Ln();
            }
            unset($ToC);
        }
        foreach ($faqs as $faq) {
            $PostTitle = strip_tags(html_entity_decode($faq->post_title));
            $PostText = strip_tags(html_entity_decode($faq->post_content));
            $PostText = str_replace("&#91;", "[", $PostText);
            $PostText = str_replace("&#93;", "]", $PostText);
            $pdf->AddPage();
            $Entry['page'] = $pdf->page;
            $Entry['title'] = $PostTitle;
            $pdf->SetFont('Arial', 'B', 15);
            $pdf->MultiCell(0, 10, $PostTitle);
            $pdf->Ln();
            $pdf->SetFont('Arial', '', 12);
            $pdf->MultiCell(0, 10, $PostText);
            $ToC[] = $Entry;
            unset($Entry);
        }
        if ($PDFRun == "FirstPageRun" or $PDFRun == "SecondPageRun") {
            $pdf->Close();
        }
        if ($PDFRun == "Final") {
            $pdf->Output('Ultimate-FAQ-Manual.pdf', 'D');
        }
    }
}
开发者ID:hkarriche,项目名称:wordpress,代码行数:49,代码来源:EWD_UFAQ_Export_To_PDF.php

示例6: MultiCell

 function MultiCell($w, $h, $txt, $border = 0, $align = 'L', $fill = 0)
 {
     if ($this->CurrentFont['type'] == 'Type0') {
         $this->MBMultiCell($w, $h, $txt, $border, $align, $fill);
     } else {
         parent::MultiCell($w, $h, $txt, $border, $align, $fill);
     }
 }
开发者ID:BackupTheBerlios,项目名称:soopa,代码行数:8,代码来源:korean.php

示例7: initialize_pdf

 /**
  * 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;
 }
开发者ID:remotelearner,项目名称:elis.reporting,代码行数:20,代码来源:php_report_export_pdf.class.php

示例8:

//Fields Name position
$Y_Fields_Name_position = 20;
//Table position, under Fields Name
$Y_Table_Position = 26;
//First create each Field Name
//Gray color filling each Field Name box
$pdf->SetFillColor(232, 232, 232);
//Bold Font for Field Name
$pdf->SetFont('Arial', 'B', 12);
$pdf->SetY($Y_Fields_Name_position);
$pdf->SetX(45);
$pdf->Cell(30, 6, 'StudentID', 1, 0, 'L', 1);
$pdf->SetX(65);
$pdf->Ln();
//Now show the 3 columns
$pdf->SetFont('Arial', '', 12);
$pdf->SetY($Y_Table_Position);
$pdf->SetX(45);
$pdf->MultiCell(30, 6, $column_ID, 1);
$pdf->SetY($Y_Table_Position);
$pdf->SetX(65);
//Create lines (boxes) for each ROW (Product)
//If you don't use the following code, you don't create the lines separating each row
$i = 0;
$pdf->SetY($Y_Table_Position);
while ($i < $number_of_products) {
    $pdf->SetX(45);
    $pdf->MultiCell(120, 6, '', 1);
    $i = $i + 1;
}
$pdf->Output();
开发者ID:swena,项目名称:E-Campus-Website,代码行数:31,代码来源:fpdfmysql.php

示例9: FPDF

<?php

include 'config.php';
require '../assets/pdf/fpdf.php';
$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');
开发者ID:GulajavaMinistudio,项目名称:KiosPenjualan,代码行数:31,代码来源:lap_barang_laku.php

示例10:

$pdf->SetX(235);
$pdf->Cell(20, 5, '2ND QUARTER', 1, 0, 'C');
$pdf->SetX(255);
$pdf->Cell(15, 5, 'OR NUMBER', 1, 0, 'C');
$pdf->SetX(270);
$pdf->Cell(20, 5, '3RD QUARTER', 1, 0, 'C');
$pdf->SetX(290);
$pdf->Cell(15, 5, 'OR NUMBER', 1, 0, 'C');
$pdf->SetX(305);
$pdf->Cell(20, 5, '4TH QUARTER', 1, 0, 'C');
$pdf->SetX(325);
$pdf->Cell(15, 5, 'OR NUMBER', 1, 0, 'C');
$pdf->SetFont('Arial', '', 6);
$pdf->SetY($Y_Table_Position);
$pdf->SetX(5);
$pdf->MultiCell(35, 5, $column_code1, 1, 0, 'L');
$pdf->SetY($Y_Table_Position);
$pdf->SetX(40);
$pdf->MultiCell(30, 5, $column_code2, 1, 0);
$pdf->SetY($Y_Table_Position);
$pdf->SetX(70);
$pdf->MultiCell(60, 5, $column_code3, 1, 0);
$pdf->SetY($Y_Table_Position);
$pdf->SetX(130);
$pdf->MultiCell(70, 5, $column_code4, 1, 0);
$pdf->SetY($Y_Table_Position);
$pdf->SetX(200);
$pdf->MultiCell(20, 5, $column_code5, 1, 0, 'R');
$pdf->SetY($Y_Table_Position);
$pdf->SetX(220);
$pdf->MultiCell(15, 5, $column_code6, 1, 0, 'R');
开发者ID:laiello,项目名称:ebpls,代码行数:31,代码来源:ebpls_bus_feecollection_quart.php

示例11: de

$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);
$pdf->setTextColor(255, 255, 255);
$pdf->Rect(20, 60, 110, 30, 'FD');
$pdf->Rect(20, 90, 110, 30, 'FILL');
$pdf->Rect(20, 120, 110, 30, 'FILL');
$pdf->Rect(130, 60, 60, 90, 'FILL');
$pdf->Text(55, 75, utf8_decode('FUNCIONARIO(A) RECEPTOR'));
$pdf->setTextColor(0, 0, 0);
$pdf->SetFont('Arial', '', 8);
$pdf->Text(23, 105, utf8_decode('APELLIDOS Y NOMBRES:'));
$pdf->SetFont('Arial', 'B', 8);
$pdf->Text(70, 148, utf8_decode('FIRMA'));
$pdf->Text(155, 105, utf8_decode('SELLO'));
$pdf->Rect(20, 152, 170, 30, 'FILL');
$pdf->Text(22, 158, utf8_decode('NOTA IMPORTANTE:'));
$pdf->SetXY(22, 160);
$pdf->SetFont('Arial', '', 8);
$pdf->SetRightMargin(20.0);
$pdf->MultiCell(0, 4, utf8_decode('Procesar su denuncia incolucra a varias unidades administrativas adscritas al IVSS y activa procedimientos necesarios para la solución del problema, por lo cual requiere de un lapso de (60) días para su proceso, es por ello que agradecemos esperar a ser contacctado por vía telefónica o cualquier otro medio para informarle del estatus y/o resultado de su Denuncia, Queja y/o Reclamo.'));
/***************************************************************************/
$pdf->Output('comprobante_recepcion_queja.pdf', 'I');
/***************************************************************************/
开发者ID:vanckruz,项目名称:draftReports,代码行数:31,代码来源:comprobante_recepcion_queja.php

示例12: strlen

    $pdf->Cell($name_len, 10, $title[$i], 1, 0);
    $pdf->Cell($desig_len, 10, $agency[$i], 1, 0);
    $pdf->Cell($doj_len, 10, $value[$i], 1, 0);
    $pdf->Cell($dol_len, 10, $status[$i], 1, 1);
}
$pdf->Ln();
$pdf->Ln();
$pdf->SetFont('Arial', 'B');
$head = '19. Courses Handled :';
$pdf->Cell(2 * strlen($head), 10, $head, 0, 0);
$pdf->Ln();
$pdf->Ln();
$pdf->SetFont('Arial');
$head = 'Undergraduate Level :';
$pdf->Cell(2 * strlen($head), 10, $head, 0, 1);
$pdf->MultiCell(0, 10, $courses_undergrad);
$pdf->Ln();
$pdf->Ln();
$head = 'Postgraduate Level :';
$pdf->Cell(2 * strlen($head), 10, $head, 0, 1);
$pdf->MultiCell(0, 10, $courses_postgrad);
$pdf->Ln();
$pdf->Ln();
$pdf->SetFont('Arial', 'B');
$head = '20. Short courses / Workshops /Seminars organized :';
$pdf->Cell(2 * strlen($head), 10, $head, 0, 1);
$pdf->SetFont('Arial');
$pdf->MultiCell(0, 10, $wrkshps);
$pdf->Ln();
$pdf->Ln();
$pdf->SetFont('Arial', 'B');
开发者ID:dc-iiitdm,项目名称:ELE401codes,代码行数:31,代码来源:form3_pdf.php

示例13: Report

     $pdf->Cell($datew, $sh, $grade['due_date'], 0, 0, 'C', 1);
     $pdf->Cell($assignw, $sh, $grade['assignment_name'], 0, 0, 'L', 1);
     /** if a comment exists use GetStringWidth($s) to figure out how tall
         to make the cells to follow.  Put the comment cell below this one then 
         the others to the right of this one.  Maybe make the comment cell full
         width. **/
     $pdf->Cell($catw, $sh, $grade['category_name'], 0, 0, 'L', 1);
     $pdf->Cell($scorew, $sh, $grade['score'] . "/" . $grade['max_score'], 0, 0, 'C', 1);
     $pdf->Cell($weightw, $sh, $grade['assignment_weight'], 0, 0, 'C', 1);
     $pdf->Cell($avgw, $sh, $grade['avg'], 0, 1, 'C', 1);
     if ($assignInfo['comment'] != '') {
         $pdf->SetFont('Times', 'I', 8);
         $pdf->Cell($datew, $sh, '', 0, 0, 'L', 1);
         $lines = $pdf->GetStringWidth($grade['comment']) / ($pw - $datew);
         $h = $lines * $sh;
         $pdf->MultiCell($pw - $datew, $sh, $grade['comment'], 0, 'L', 1);
         $pdf->SetFont('Times', '', 8);
     }
     /** $x_coord = $pdf->GetX();**/
     $y_coord = $pdf->GetY();
     $rcv++;
 }
 /* determine if custom score chart will fit on current page */
 if ($y_coord + $sh * count($custom_scores) > 10) {
     $pdf->AddPage();
     $pdf->SetTextColor(51, 102, 102);
     $pdf->SetFont('Times', 'B', $titlefs);
     $pdf->SetXY($lm, $tm);
     $pdf->Cell($headingw, $titleh, 'Questar III Student Progress Report (Contd.)', 0, 1, 'C', 0);
     $y_coord = $tm + $titleh;
 }
开发者ID:knichel,项目名称:AIT,代码行数:31,代码来源:printview_progressreport.php

示例14: post_id_handler

 public function post_id_handler()
 {
     $numbers = array("zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten", "eleven", "twelve", "thirteen", "fourteen", "fifteen", "sixteen", "seventeen", "eighteen", "nineteen", "twenty");
     if (!is_array($this->id)) {
         $this->id = array($this->id);
     }
     $today = date("F j, Y");
     $pdf = new FPDF('P', 'mm', 'Letter');
     $pdf->AddFont('Gill', '', 'GillSansMTPro-Medium.php');
     $pdf->AddFont('Gill', 'B', 'GillSansMTPro-Medium.php');
     //Meat of the statement
     foreach ($this->id as $card_no) {
         $pdf->AddPage();
         $pdf->Image('new_letterhead_horizontal.png', 5, 10, 200);
         $pdf->SetFont('Gill', '', '12');
         $pdf->Ln(45);
         $account = \COREPOS\Fannie\API\member\MemberREST::get($card_no);
         $pdf->Cell(10, 10, $today, 0);
         $pdf->Ln(15);
         foreach ($account['customers'] as $c) {
             if ($c['accountHolder']) {
                 $firstname = ucwords(strtolower($c['firstName']));
                 $lastname = ucwords(strtolower($c['lastName']));
                 $fullname = $firstname . " " . $lastname;
                 break;
             }
         }
         //Member address
         $pdf->Cell(10, 10, trim($fullname), 0);
         $pdf->Ln(5);
         $pdf->Cell(80, 10, $account['addressFirstLine'], 0);
         if ($account['addressSecondLine']) {
             $pdf->Cell(80, 10, $account['addressSecondLine'], 0);
         }
         $pdf->Cell(90, 10, $account['city'] . ', ' . $account['state'] . '   ' . $account['zip'], 0);
         $pdf->Ln(15);
         $pdf->MultiCell(0, 5, "Dear " . $firstname . ",");
         $pdf->Ln(5);
         $txt = "We have received your Application to Terminate your membership at WFC. The\nBoard reviews termination requests annually in ";
         $pdf->SetFont("Gill", "", "12");
         $pdf->Write(5, str_replace("\n", " ", $txt));
         $pdf->SetFont("Gill", "B", "12");
         $pdf->Write(5, "February");
         $pdf->SetFont("Gill", "", "12");
         $txt = ". Refunds, less any indebtedness owed to WFC, are authorized for payment in\nthe order received subject to the financial health of WFC and receipt of additional stock\nfrom new members. Your stock will be refunded as soon as possible based on these criteria.";
         $pdf->Write(5, str_replace("\n", " ", $txt) . "\n");
         $pdf->Ln(5);
         $txt = "Submission of an Application to Terminate immediately inactivates your owner\nbenefits and discounts and your right to participate in governance of WFC. Please keep us\nadvised of any changes in your mailing address.";
         $pdf->MultiCell(0, 5, str_replace("\n", ' ', $txt));
         $pdf->Ln(5);
         $txt = "If you have any questions, please do not hesitate to ask. I can be reached at the\nnumber above or at mms@wholefoods.coop. Thank you.";
         $pdf->MultiCell(0, 5, str_replace("\n", ' ', $txt));
         $pdf->Ln(5);
         $pdf->MultiCell(0, 5, "Thank you for your support of WFC");
         $pdf->Ln(10);
         $pdf->MultiCell(0, 5, "Sincerely yours,");
         $pdf->MultiCell(0, 5, "WHOLE FOODS COMMUNITY CO-OP, INC.");
         $pdf->Ln(10);
         $pdf->MultiCell(0, 5, "Amanda Borgren");
         $pdf->MultiCell(0, 5, "Owner Services");
     }
     $pdf->Output('member term letters.pdf', 'D');
     return false;
 }
开发者ID:phpsmith,项目名称:IS4C,代码行数:64,代码来源:StatementsPluginTerm.php

示例15:

$pdf->SetX(120);
$pdf->Cell(35, 10, 'Prix unitaire HT', 1, 0, 'C', 1);
$pdf->SetX(155);
$pdf->Cell(30, 10, 'Montant HT', 1, 0, 'C', 1);
$pdf->Ln(); // retour à la ligne

// détail commande
$positionLigne = 110;
$totalHT = 0;

foreach ($tDetailCommande as $detailCommande) {
	$totalHT += $detailCommande['qteProduit'] * $detailCommande['prixUnitaire'];

	$pdf->SetY($positionLigne);
	$pdf->SetX(20);
	$pdf->MultiCell(80, 10, $detailCommande['descriptionFR'], 1, 'L');
	$pdf->SetY($positionLigne);
	$pdf->SetX(100);
	$pdf->MultiCell(20, 10, $detailCommande['qteProduit'], 1, 'C');
	$pdf->SetY($positionLigne);
	$pdf->SetX(120);
	$pdf->MultiCell(35, 10, $detailCommande['prixUnitaire'], 1, 'C');
	$pdf->SetY($positionLigne);
	$pdf->SetX(155);
	$pdf->MultiCell(30, 10, ($detailCommande['qteProduit'] * $detailCommande['prixUnitaire']), 1, 'C');
	$positionLigne += 10;
}

//  montant total
$pdf->SetY($positionLigne);
$pdf->SetX(155);
开发者ID:Ophois,项目名称:webforce3,代码行数:31,代码来源:facture.php


注:本文中的FPDF::MultiCell方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。