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


PHP FPDF::SetLineWidth方法代码示例

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


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

示例1: drawPDF

 public function drawPDF()
 {
     $pdf = new \FPDF('P', 'mm', 'Letter');
     $pdf->SetMargins(0, 3.175, 0);
     $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 = 53.975;
     $height = 68.95999999999999;
     $top = 20;
     $left = 5.175;
     $effective_width = $width - 2 * $left;
     $pdf->SetDrawColor(0, 0, 0);
     $pdf->SetLineWidth(0.2);
     foreach ($data as $item) {
         if ($count % 16 == 0) {
             $pdf->AddPage();
             // draw tick marks for cutting
             $pdf->Line(2, $height + 1.5, 6, $height + 1.5);
             $pdf->Line(2, 2 * $height + 1.5, 6, 2 * $height + 1.5);
             $pdf->Line(2, 3 * $height + 1.5, 6, 3 * $height + 1.5);
             $pdf->Line($width, 2, $width, 6);
             $pdf->Line(2 * $width, 2, 2 * $width, 6);
             $pdf->Line(3 * $width, 2, 3 * $width, 6);
             $pdf->Line($width, 4 * $height - 4, $width, 4 * $height);
             $pdf->Line(2 * $width, 4 * $height - 4, 2 * $width, 4 * $height);
             $pdf->Line(3 * $width, 4 * $height - 4, 3 * $width, 4 * $height);
             $pdf->Line(4 * $width - 6, $height + 1.5, 4 * $width - 2, $height + 1.5);
             $pdf->Line(4 * $width - 6, 2 * $height + 1.5, 4 * $width - 2, 2 * $height + 1.5);
             $pdf->Line(4 * $width - 6, 3 * $height + 1.5, 4 * $width - 2, 3 * $height + 1.5);
             $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 - 2 + $width * $column, $top - 17 + $row * $height, $width - 6);
         $pdf->SetXY($left + $width * $column, $top + $row * $height - 2);
         $pdf->SetFont('Gill', 'B', $this->SMALL_FONT);
         $font_shrink = 0;
         while (true) {
             $pdf->SetX($left + $width * $column);
             $y = $pdf->GetY();
             $pdf->MultiCell($effective_width, 6, strtoupper($item['brand']), 0, 'C');
             if ($pdf->GetY() - $y > 6) {
                 $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->SMALL_FONT) {
                     break;
                 }
                 $pdf->SetFontSize($this->MED_FONT - $font_shrink);
                 $pdf->SetXY($left + $width * $column, $y);
             } else {
                 break;
             }
         }
         $pdf->SetX($left + $width * $column);
         $pdf->SetFont('Gill', '', $this->MED_FONT);
         $font_shrink = 0;
         while (true) {
             $pdf->SetX($left + $width * $column);
             $y = $pdf->GetY();
             $pdf->MultiCell($effective_width, 6, $item['description'], 0, 'C');
             if ($pdf->GetY() - $y > 12) {
                 $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 < 12) {
                     $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);
//.........这里部分代码省略.........
开发者ID:phpsmith,项目名称:IS4C,代码行数:101,代码来源:CoopDeals16UpDarkP.php

示例2: FPDF

 function __construct($products, $order, $filename, $save = false)
 {
     App::import('vendor', 'fpdf/fpdf');
     $orientation = 'P';
     $unit = 'pt';
     $format = 'A4';
     $margin = 40;
     $pdf = new FPDF($orientation, $unit, $format);
     App::import('Helper', 'Time');
     $timeHelper = new TimeHelper();
     setlocale(LC_MONETARY, 'th_TH');
     $pdf->AddPage();
     $pdf->SetTopMargin($margin);
     $pdf->SetLeftMargin($margin);
     $pdf->SetRightMargin($margin);
     $pdf->SetAutoPageBreak(true, $margin);
     $pdf->SetY($pdf->GetY() + 60);
     $pdf->SetFont('Arial', 'B', 10);
     $pdf->SetTextColor(0);
     $pdf->SetFillColor(255);
     $pdf->SetLineWidth(1);
     $pdf->Cell(50, 25, "Order ID: ", 'LT', 0, 'L');
     $pdf->SetFont('Arial', '');
     $pdf->Cell(50, 25, $order['Order']['id'], 'T', 0, 'L');
     $pdf->SetFont('Arial', 'B');
     $pdf->Cell(100, 25, 'Customer Name: ', 'T', 0, 'L');
     $pdf->SetFont('Arial', '');
     $pdf->Cell(316, 25, $order['User']['name'], 'TR', 1, 'L');
     $pdf->SetFont('Arial', 'B');
     $pdf->Cell(100, 25, "Delivery Date: ", 'LT', 0, 'L');
     $pdf->SetFont('Arial', '');
     $pdf->Cell(416, 25, $timeHelper->format($format = 'd-m-Y', $order['Delivery']['date']), 'TR', 1, 'L');
     $pdf->SetFont('Arial', 'B', '10');
     $current_y = $pdf->GetY();
     $current_x = $pdf->GetX();
     $cell_width = 30;
     $pdf->MultiCell($cell_width, 25, "No.\n ", 'LTR', 'C');
     $pdf->SetXY($current_x + $cell_width, $current_y);
     $pdf->Cell(250, 25, "Description", 'LTR', 0, 'C');
     $current_y = $pdf->GetY();
     $current_x = $pdf->GetX();
     $cell_width = 48;
     $pdf->MultiCell($cell_width, 25, "Number Ordered", 'LTR', 'C');
     $pdf->SetXY($current_x + $cell_width, $current_y);
     $current_y = $pdf->GetY();
     $current_x = $pdf->GetX();
     $cell_width = 48;
     $pdf->MultiCell($cell_width, 25, "Number Supplied", 'LTR', 'C');
     $pdf->SetXY($current_x + $cell_width, $current_y);
     $current_y = $pdf->GetY();
     $current_x = $pdf->GetX();
     $cell_width = 70;
     $pdf->MultiCell($cell_width, 25, "Amount per Unit", 'LTR', 'C');
     $pdf->SetXY($current_x + $cell_width, $current_y);
     $current_y = $pdf->GetY();
     $current_x = $pdf->GetX();
     $cell_width = 70;
     $pdf->MultiCell($cell_width, 25, "Amount\n ", 'LTR', 'C');
     $pdf->SetY($pdf->GetY() - 25);
     $pdf->SetFont('Arial', '');
     $pdf->SetFillColor(238);
     $pdf->SetLineWidth(0.2);
     $pdf->SetY($pdf->GetY() + 25);
     $num = 1;
     $number_ordered = 0;
     $number_supplied = 0;
     foreach ($products as $product) {
         $pdf->Cell(30, 20, $num++, 1, 0, 'L');
         $pdf->Cell(250, 20, $product['Product']['short_description'], 1, 0, 'L');
         $pdf->Cell(48, 20, $product['LineItem']['quantity'], 1, 0, 'R');
         $number_ordered += $product['LineItem']['quantity'];
         $pdf->Cell(48, 20, $product['LineItem']['quantity_supplied'], 1, 0, 'R');
         $number_supplied += $product['LineItem']['quantity_supplied'];
         $pdf->Cell(70, 20, money_format("%i", $product['Product']['selling_price']), 1, 0, 'R');
         $pdf->Cell(70, 20, money_format("%i", $product['LineItem']['total_price_supplied']), 1, 1, 'R');
     }
     $pdf->SetX($pdf->GetX() + 30);
     $pdf->SetFont('Arial', 'B');
     $pdf->Cell(250, 20, "TOTALS", 1);
     $pdf->SetFont('Arial', '');
     $pdf->Cell(48, 20, $number_ordered, 1, 0, 'R');
     $pdf->Cell(48, 20, $number_supplied, 1, 0, 'R');
     $pdf->Cell(70, 20, "N.A.", 1, 0, 'R');
     $pdf->Cell(70, 20, money_format("%i", $order['Order']['total_supplied']), 1, 1, 'R');
     $pdf->SetY($pdf->GetY() + 25);
     $pdf->SetFont('Arial', 'B');
     $pdf->Cell(80, 20, "Amount Paid: ");
     $pdf->SetFont('Arial', '');
     $pdf->Cell(80, 20, money_format("%i", $order['Order']['total']), 0, 1);
     $pdf->SetFont('Arial', 'B');
     $pdf->Cell(80, 20, "Actual Amount: ");
     $pdf->SetFont('Arial', '');
     $pdf->Cell(80, 20, money_format("%i", $order['Order']['total_supplied']), 0, 1);
     $pdf->SetFont('Arial', 'B');
     $pdf->Cell(80, 20, "Rebate Amount: ");
     $pdf->SetFont('Arial', '');
     $pdf->Cell(80, 20, money_format("%i", $order['Order']['total'] - $order['Order']['total_supplied']), 0, 1);
     if ($save) {
         $pdf->Output($filename, 'F');
     } else {
//.........这里部分代码省略.........
开发者ID:sunny36,项目名称:grecocos,代码行数:101,代码来源:supplier_pdf.php

示例3: FPDF

 function __construct($lineItems, $lineItemTotals, $filename, $save = false)
 {
     App::import('vendor', 'fpdf/fpdf');
     $orientation = 'P';
     $unit = 'pt';
     $format = 'A4';
     $margin = 40;
     $pdf = new FPDF($orientation, $unit, $format);
     App::import('Helper', 'Time');
     $timeHelper = new TimeHelper();
     setlocale(LC_MONETARY, 'th_TH');
     $pdf->AddPage();
     $pdf->SetTopMargin($margin);
     $pdf->SetLeftMargin($margin);
     $pdf->SetRightMargin($margin);
     $pdf->SetAutoPageBreak(true, $margin);
     $pdf->SetY($pdf->GetY() + 60);
     $pdf->SetFont('Arial', 'B', 10);
     $pdf->SetTextColor(0);
     $pdf->SetFillColor(255);
     $pdf->SetLineWidth(1);
     $pdf->SetFont('Arial', 'B', '10');
     $current_y = $pdf->GetY();
     $current_x = $pdf->GetX();
     $cell_width = 30;
     $pdf->MultiCell($cell_width, 25, "No.\n ", 'LTR', 'C');
     $pdf->SetXY($current_x + $cell_width, $current_y);
     $pdf->Cell(250, 25, "Description", 'LTR', 0, 'C');
     $current_y = $pdf->GetY();
     $current_x = $pdf->GetX();
     $cell_width = 48;
     $pdf->MultiCell($cell_width, 25, "# Ordered", 'LTR', 'C');
     $pdf->SetXY($current_x + $cell_width, $current_y);
     $current_y = $pdf->GetY();
     $current_x = $pdf->GetX();
     $cell_width = 48;
     $pdf->MultiCell($cell_width, 25, "# Supplied", 'LTR', 'C');
     $pdf->SetXY($current_x + $cell_width, $current_y);
     $current_y = $pdf->GetY();
     $current_x = $pdf->GetX();
     $cell_width = 70;
     $pdf->MultiCell($cell_width, 25, "Amount Wholesale", 'LTR', 'C');
     $pdf->SetXY($current_x + $cell_width, $current_y);
     $current_y = $pdf->GetY();
     $current_x = $pdf->GetX();
     $cell_width = 70;
     $pdf->MultiCell($cell_width, 25, "Amount Retail", 'LTR', 'C');
     $pdf->SetY($pdf->GetY() - 25);
     $pdf->SetFont('Arial', '');
     $pdf->SetFillColor(238);
     $pdf->SetLineWidth(0.2);
     $pdf->SetY($pdf->GetY() + 25);
     $num = 1;
     $number_ordered = 0;
     $number_supplied = 0;
     foreach ($lineItems as $lineItem) {
         $pdf->Cell(30, 20, $num++, 1, 0, 'L');
         $pdf->Cell(250, 20, $lineItem['Product']['short_description'], 1, 0, 'L');
         $pdf->Cell(48, 20, $lineItem['LineItem']['ordered'], 1, 0, 'R');
         $pdf->Cell(48, 20, $lineItem['LineItem']['supplied'], 1, 0, 'R');
         $pdf->Cell(70, 20, money_format("%i", $lineItem['LineItem']['amount_wholesale']), 1, 0, 'R');
         $pdf->Cell(70, 20, money_format("%i", $lineItem['LineItem']['amount_retail']), 1, 1, 'R');
     }
     $pdf->SetX($pdf->GetX() + 30);
     $pdf->SetFont('Arial', 'B');
     $pdf->Cell(250, 20, "TOTALS", 1);
     $pdf->SetFont('Arial', '');
     $pdf->Cell(48, 20, $lineItemTotals['LineItem']['ordered'], 1, 0, 'R');
     $pdf->Cell(48, 20, $lineItemTotals['LineItem']['ordered'], 1, 0, 'R');
     $pdf->Cell(70, 20, money_format("%i", $lineItemTotals['LineItem']['amount_wholesale']), 1, 0, 'R');
     $pdf->Cell(70, 20, money_format("%i", $lineItemTotals['LineItem']['amount_retail']), 1, 1, 'R');
     if ($save) {
         $pdf->Output($filename, 'F');
     } else {
         $pdf->Output($filename, 'I');
     }
 }
开发者ID:sunny36,项目名称:grecocos,代码行数:77,代码来源:supplier_batch_report.php

示例4: exportPDF

function exportPDF($strsql, $product)
{
    $mysql_server_name = SERVER_NAME;
    // mysql server name
    $mysql_username = USER_NAME;
    // mysql user name
    $mysql_password = USER_PASSWORD;
    // mysql user password
    $mysql_database = DB_NAME;
    // mysql database name
    $savename = date("Y-m-d H:i:s");
    $conn = mysql_connect($mysql_server_name, $mysql_username, $mysql_password);
    // 从表中提取信息的sql语句
    // 执行sql查询
    $result = mysql_db_query($mysql_database, $strsql, $conn);
    // 获取查询结果
    $row = mysql_fetch_row($result);
    $pdf = new FPDF();
    $pdf->AddPage();
    $pdf->SetFont('Arial', 'B', 15);
    $pdf->SetFont('', 'B', '15');
    $pdf->SetFillColor(255, 255, 255);
    $pdf->SetTextColor(128);
    $pdf->SetDrawColor(92, 92, 92);
    $pdf->SetLineWidth(0.3);
    $pdf->Write(40, $product);
    $pdf->Ln();
    //title
    $pdf->SetFont('', 'B', '9');
    $pdf->SetFillColor(128, 128, 128);
    $pdf->SetTextColor(255);
    $pdf->SetDrawColor(92, 92, 92);
    $pdf->SetLineWidth(0.3);
    // 显示字段名称
    //echo "</b><tr></b>";
    //$pdf->Cell(mysql_field_len($result, $i),7,mysql_field_name($result, $i),1,0,'C',true);
    $pdf->Cell(80, 8, 'Product', 1, 0, 'L', true);
    $pdf->Cell(80, 8, 'Sub-product', 1, 0, 'L', true);
    $pdf->Ln();
    //contents
    $pdf->SetFillColor(255, 255, 255);
    $pdf->SetTextColor(128);
    $pdf->SetDrawColor(92, 92, 92);
    //echo "</tr></b>";
    // 定位到第一条记录
    mysql_data_seek($result, 0);
    // 循环取出记录
    $tmp = 'tmp';
    while ($row = mysql_fetch_row($result)) {
        //echo "<tr></b>";
        for ($i = 0; $i < mysql_num_fields($result); $i++) {
            if ($i == 0 && $tmp == $row[$i]) {
                $pdf->Cell(80, 8, '', 1, 0, 'L', true);
            } elseif ($i == 0 && $tmp != $row[$i]) {
                $pdf->Cell(80, 8, $row[$i], 1, 0, 'L', true);
                $tmp = $row[$i];
            } else {
                $pdf->Cell(80, 8, $row[$i], 1, 0, 'L', true);
            }
        }
        //echo "</tr></b>";
        $pdf->Ln();
    }
    $pdf->Output("{$savename}.pdf", 'D');
    // release
    mysql_free_result($result);
    // disconnection
    mysql_close($conn);
}
开发者ID:hjchen2005,项目名称:consumerComplaintsAnalyzer,代码行数:69,代码来源:companyExportData.php

示例5: strlen

$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);
$pdf->Cell(20, $altura, ' ha realizado el curso', 0, 0, 'L', $fill);
$pdf->Ln();
开发者ID:QualidadInformatica,项目名称:qualidad1,代码行数:31,代码来源:certificado.php

示例6: print_result4

 /**
  * print_result4
  * print all the jobs realized by member since reference date selected in the second part (start date to share job between member)
  *
  * @param array $arr :
  * @param array $arr['team'] team with param (login, nom, adresse, code, commune, tel1, tel2, mail)
  * @param array $arr['team2'] team2 with param (login, total_job, total_jobv2, liste_job)
  * @param date $arr['date_ref'] format DD/MM/YYYY date selected to begin share job between member
  * @param string $arr['date_debut'] date of the begin of the selected month format : DD/MM/YYYY
  * @param string $arr['date_fin'] date of the end of the selected month format : DD/MM/YYYY
  * @param array $arr['agenda'] array of schedule for the month sort by job and by login
  * @return json json of ok
  */
 public static function print_result4($arr)
 {
     try {
         require 'fpdf/fpdf.php';
         require 'fpdi/fpdi.php';
         $filename = 'planning/';
         if (!file_exists($filename)) {
             if (!mkdir($filename, 0755, true)) {
                 die('Echec lors de la création des répertoires...');
             }
         }
         if ($arr['cas'] == 1) {
             $pdf = new FPDF();
         }
         $intersect = array_uintersect($arr['team'], $arr['team2'], 'compareDeepValue');
         if (isset($_SESSION['login2'])) {
             $info_veto = requetemysql::info_veterinaire(array('login' => strtolower($_SESSION['login'])));
             if (empty($info_veto)) {
                 throw new Exception("Erreur dans la recherche des informations sur le vétérinaire");
             } else {
                 $info_veto = json_decode($info_veto, true);
             }
         }
         $transformation_object = array_map(function ($e) {
             return is_object($e) ? $e->login : $e['login'];
         }, $arr['team2']);
         //			var_error_log("liste_pointv2");
         //			var_error_log($transformation_object);
         foreach ($intersect as $info_veto2) {
             if ($arr['cas'] == 2) {
                 $pdf = new FPDF();
             }
             $mon_index = array_search($info_veto2->login, $transformation_object);
             var_error_log($mon_index);
             $pdf->AddPage();
             $pdf->Image('../images/logo/essai1.jpg', 10, 6, 30);
             if (isset($_SESSION['login2'])) {
                 $pdf->SetFont('Times', '', 18);
                 $titre3 = utf8_decode(stripslashes(ucfirst($info_veto[0]['nom'])));
                 $w = $pdf->GetStringWidth(stripslashes($titre3)) + 6;
                 $pdf->SetX((210 - $w) / 2);
                 $pdf->Cell($w, 7, $titre3, 0, 'C');
                 $pdf->Ln();
                 $w = $pdf->GetStringWidth(utf8_decode(stripslashes($info_veto[0]['adresse']))) + 6;
                 $pdf->SetX((210 - $w) / 2);
                 $pdf->Cell($w, 7, utf8_decode(stripslashes($info_veto[0]['adresse'])), 0, 'C');
                 $pdf->Ln();
                 $w = $pdf->GetStringWidth(utf8_decode(stripslashes($info_veto[0]['code'] . " " . $info_veto[0]['commune']))) + 6;
                 $pdf->SetX((210 - $w) / 2);
                 $pdf->Cell($w, 7, utf8_decode(stripslashes($info_veto[0]['code'] . " " . $info_veto[0]['commune'])), 0, 'C');
                 $pdf->Ln();
                 $pdf->SetFont('Times', '', 12);
                 $w = $pdf->GetStringWidth(utf8_decode(stripslashes($info_veto[0]['tel']))) + 6;
                 $pdf->SetX((210 - $w) / 2);
                 $pdf->Cell($w, 7, utf8_decode(stripslashes($info_veto[0]['tel'])), 0, 'C');
                 $pdf->Ln(15);
             }
             $pdf->Cell(90);
             $pdf->MultiCell(85, 5, requetemysql::gestion_string_maj($info_veto2->nom) . "\n" . requetemysql::gestion_string_norm($info_veto2->adresse) . "\n" . requetemysql::gestion_string_norm($info_veto2->code) . ' ' . requetemysql::gestion_string_norm($info_veto2->commune), 0, 'C');
             $pdf->Ln(25);
             $pdf->MultiCell(85, 5, "Le " . date("d.m.y"), 0, 'L');
             if (isset($_SESSION['login2'])) {
                 $pdf->MultiCell(85, 5, requetemysql::gestion_string_maj(TXT_CHARGEMENT_EXPORT8 . stripslashes(ucfirst($info_veto[0]['nom']))), 0, 'L');
             } else {
                 $pdf->MultiCell(85, 5, requetemysql::gestion_string_maj(TXT_CHARGEMENT_EXPORT23), 0, 'L');
             }
             $pdf->SetFont('Times', '', 18);
             $pdf->SetFillColor(153, 153, 153);
             $pdf->SetTextColor(0, 0, 0);
             $pdf->SetDrawColor(153, 153, 153);
             $pdf->SetLineWidth(0.3);
             $pdf->SetFont('', 'B');
             $pdf->MultiCell(0, 12, utf8_decode(TXT_CHARGEMENT_EXPORT24 . requetemysql::gestion_string_maj(htmlentities($info_veto2->login)) . " sur la période du :" . requetemysql::gestion_string_norm($arr['date_ref']) . " au " . requetemysql::gestion_string_norm($arr['date_fin'])), 0, '', true);
             // Largeurs des colonnes
             $w = array(190 / 6, 190 / 6, 190 / 6, 190 / 2);
             $header = array(utf8_decode(TXT_CHARGEMENT_EXPORT26), utf8_decode(TXT_CHARGEMENT_EXPORT27) . " " . requetemysql::gestion_string_norm($arr['date_ref']) . "-" . requetemysql::gestion_string_norm($arr['date_debut']), utf8_decode(TXT_CHARGEMENT_EXPORT27) . " " . requetemysql::gestion_string_norm($arr['date_ref']) . "-" . requetemysql::gestion_string_norm($arr['date_fin']), utf8_decode(TXT_CHARGEMENT_EXPORT28));
             // Données
             $pdf->SetFont('Times', '', 8);
             // En-tête
             for ($i = 0; $i < count($header); $i++) {
                 $pdf->Cell($w[$i], 7, $header[$i], 1, 0, 'C');
             }
             $pdf->Ln();
             foreach ($arr['team2'][$mon_index]->total_job as $row) {
                 foreach ($row as $k => $v) {
                     $pdf->Cell($w[0], 6, requetemysql::gestion_string_maj($k), 1, 0, 'C');
                     $pdf->Cell($w[1], 6, requetemysql::gestion_string_maj($v), 1, 0, 'C');
//.........这里部分代码省略.........
开发者ID:astrolabb,项目名称:shift,代码行数:101,代码来源:requetemysql.php

示例7: array

 $part3[0] = '';
 $part4 = array();
 $part4[0] = '';
 $serverTotal = array();
 $serverTotal[0] = '';
 $grandServerTotal = 0;
 $oneTimeTotal = 600;
 $pdf = new FPDF();
 $pdf->AddPage();
 $pdf->Image('./pdf/images/dss_logo.jpg');
 $pdf->SetFont('Arial', '', '12');
 $pdf->Cell(0, 10, 'Budgetary Quote for Hosting', 0, 1, 'C');
 $pdf->Cell(0, 10, '**** This is not a formal proposal. Formal design required. ****', 0, 1, 'C');
 $pdf->Cell(95, 10, 'Date: ' . date('m/d/y'), 0, 0, 'L');
 $pdf->Cell(95, 10, 'Contact: ' . $salesperson, 0, 1, 'R');
 $pdf->SetLineWidth(0.8);
 $pdf->SetDrawColor(160, 160, 160);
 $pdf->Line(10, 53, 200, 53);
 $pdf->SetFont('', 'B', '14');
 $pdf->Cell(130, 15, 'Description', 0, 0, 'L');
 $pdf->Cell(30, 15, 'Monthly', 0, 0, 'R');
 $pdf->Cell(30, 15, 'One-Time', 0, 1, 'R');
 $serversOnList = $_POST['servers-on-list'];
 if ($serversOnList == 0) {
     $pdf->SetFont('', 'I', '12');
     $pdf->Cell(130, 5, 'No cloud server configurations', 0, 1, 'L');
 } else {
     $driveTotal = 0;
     for ($i = 1; $i <= $serversOnList; ++$i) {
         $pdf->SetFont('', '', '12');
         $pdf->Cell(130, 5, $_POST['server_name' . $i], 0, 0, 'L');
开发者ID:skantner,项目名称:rc2pricer,代码行数:31,代码来源:print_rc2_pricer.php

示例8: FPDF

require "fpdf/fpdf.php";
$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);
开发者ID:Vitosh,项目名称:PHP,代码行数:31,代码来源:make_certificate.php

示例9: genpdf

function genpdf($idfacture, $idpaiement, $date, $payeur, $type, $mode, $montant, $initiales, $no_cheque, $organisme, $obs)
{
    $xreg = 1.5;
    $yreg = 3.5;
    $pdf = new FPDF('P', 'mm', 'A4');
    $pdf->AddPage();
    //logo
    $pdf->Image('img/logo.jpg', 10 + $xreg, 14 + $yreg, 12, 10, 'jpg');
    $pdf->SetLineWidth(0.4);
    $pdf->Rect(4 + $xreg, 7 + $yreg, 196, 30);
    //rectangle global
    $pdf->Line(4 + $xreg, 13 + $yreg, 200 + $xreg, 13 + $yreg);
    //1ere barre horizontale
    $pdf->Line(27 + $xreg, 7 + $yreg, 27 + $xreg, 37 + $yreg);
    //1ere barre verticale
    $pdf->Line(77 + $xreg, 7 + $yreg, 77 + $xreg, 37 + $yreg);
    //2nd barre verticale
    $pdf->Line(127 + $xreg, 7 + $yreg, 127 + $xreg, 37 + $yreg);
    //3eme barre verticale
    $pdf->Line(152 + $xreg, 7 + $yreg, 152 + $xreg, 37 + $yreg);
    //4eme barre verticale
    $pdf->Line(177 + $xreg, 7 + $yreg, 177 + $xreg, 37 + $yreg);
    //5eme barre verticale
    $pdf->SetLineWidth(0.2);
    $pdf->Line(27 + $xreg, 21 + $yreg, 200 + $xreg, 21 + $yreg);
    //1ere barre fine horizontale
    $pdf->Line(4 + $xreg, 31 + $yreg, 200 + $xreg, 31 + $yreg);
    //2nd barre fine horizontale
    $pdf->SetFont('Arial', '', 8);
    $pdf->SetXY(4 + $xreg, 7 + $yreg);
    $pdf->Cell(23, 7, utf8_decode('DATE'), 0, 1, 'C');
    $pdf->SetXY(27 + $xreg, 7 + $yreg);
    $pdf->Cell(50, 7, utf8_decode('NOM de la partie versante'), 0, 1, 'C');
    $pdf->SetXY(27 + $xreg, 13 + $yreg);
    $pdf->Cell(50, 7, utf8_decode('Reçu de M.'), 0, 1, '');
    $pdf->SetXY(77 + $xreg, 7 + $yreg);
    $pdf->Cell(50, 7, utf8_decode('DESIGNATION DES PRODUITS'), 0, 1, 'C');
    $pdf->SetXY(127 + $xreg, 7 + $yreg);
    $pdf->Cell(25, 3.5, utf8_decode('VERSEMENT'), 0, 1, 'C');
    $pdf->SetXY(127 + $xreg, 9.5 + $yreg);
    $pdf->Cell(25, 3.5, utf8_decode('en numéraire'), 0, 1, 'C');
    $pdf->SetXY(152 + $xreg, 7 + $yreg);
    $pdf->Cell(25, 7, utf8_decode('CHEQUES'), 0, 1, 'C');
    $pdf->SetXY(177 + $xreg, 7 + $yreg);
    $pdf->Cell(25, 7, utf8_decode('DIVERS'), 0, 1, 'C');
    //data
    $pdf->SetXY(4 + $xreg, 25 + $yreg);
    $pdf->Cell(23, 7, "No. " . $idpaiement, 0, 1, 'C');
    $pdf->SetXY(4 + $xreg, 31 + $yreg);
    $pdf->Cell(23, 7, standarddateformat($date), 0, 1, 'C');
    $pdf->SetXY(27 + $xreg, 31 + $yreg);
    $pdf->Cell(50, 7, utf8_decode($obs), 0, 1, '');
    $pdf->SetXY(27 + $xreg, 21 + $yreg);
    $pdf->Cell(50, 10, strtoupper(utf8_decode($payeur)), 0, 1, 'C');
    switch ($mode) {
        case 'num':
            $pdf->SetXY(125 + $xreg + $xreg, 21 + $yreg);
            break;
        case 'chq':
            $pdf->SetXY(150 + $xreg + $xreg, 19 + $yreg);
            break;
        default:
            $pdf->SetXY(175 + $xreg + $xreg, 21 + $yreg);
            break;
    }
    $pdf->Cell(25, 10, utf8_decode(trispace($montant) . ' FCP'), 0, 1, 'C');
    $pdf->SetXY(150 + $xreg + $xreg, 23 + $yreg);
    $pdf->Cell(25, 10, utf8_decode($organisme . ' ' . $no_cheque), 0, 1, 'C');
    $pdf->SetXY(77 + $xreg + $xreg, 13 + $yreg);
    $pdf->Cell(50, 10, utf8_decode('Facture n° ' . $idfacture), 0, 1, 'C');
    $pdf->SetXY(77 + $xreg + $xreg, 21 + $yreg);
    $pdf->Cell(50, 10, utf8_decode($type), 0, 1, 'C');
    $pdf->SetXY(77 + $xreg + $xreg, 29 + $yreg);
    $pdf->Cell(50, 10, utf8_decode('Receveur ' . $initiales), 0, 1, 'C');
    $pdf->Output();
}
开发者ID:BGCX067,项目名称:faaa-multifac-svn-to-git,代码行数:76,代码来源:createrecu.php

示例10: makePdf

 private function makePdf($Desenhos, $Conjuntos, $Pesos, $naome)
 {
     define('FPDF_FONTPATH', "./assets/template/font/");
     $pdf = new FPDF();
     $pdf->AddPage();
     $pdf->Image(base_url('assets/template/img/logo-Steel4web-600.png'), 10, 6, 30);
     $pdf->Ln(4);
     $pdf->SetFont('Arial', '', 12);
     $w = array(50, 30, 50, 14, 23, 23);
     $cabeca = array('Projeto', 'Empresa', 'Responsavel', 'Vrs', 'Contr.', 'Data');
     $content = array('GR0-00f3', 'Vipal', 'Vitor Lima', '01', 'Web3d', '20/01/2016');
     for ($i = 0; $i < count($cabeca); $i++) {
         $pdf->Cell($w[$i], 8, $cabeca[$i], 1, 0, 'C');
     }
     $pdf->Ln();
     $pdf->SetFont('Arial', '', 8);
     for ($i = 0; $i < count($cabeca); $i++) {
         $pdf->Cell($w[$i], 6, $content[$i], 1, 0, 'C');
     }
     $pdf->Ln(20);
     $pdf->SetFont('Arial', '', 14);
     $header = array('Desenho', 'Tipologia', 'Peso Total(KG)');
     $total = array('TOTAL GRD', '-', $Pesos['total']);
     $data = array('Desenho', 'Conjunto', 'Tipologia', 'Quantidade', 'Peso Unid.(Kg)', 'Peso Total(Kg)');
     $w2 = array(50, 80, 60);
     $pdf->SetLineWidth(0.3);
     for ($i = 0; $i < count($header); $i++) {
         $pdf->Cell($w2[$i], 8, $header[$i], 1, 0, 'C');
     }
     $pdf->Ln();
     $pdf->SetFont('Arial', 'B', 12);
     for ($i = 0; $i < count($total); $i++) {
         $pdf->Cell($w2[$i], 6, $total[$i], 'LRB', 0, 'C');
     }
     $pdf->Ln();
     foreach ($Desenhos as $des) {
         $pdf->SetFont('Arial', 'B', 10);
         //  $pdf->SetTextColor(46,46,135);
         $dese = array($des, $Conjuntos[$des][0]['DES_PEZ'], $Pesos[$des]);
         for ($i = 0; $i < count($dese); $i++) {
             $pdf->Cell($w2[$i], 6, $dese[$i], 'LRB', 0, 'C');
         }
         $pdf->Ln();
         /*         $pdf->SetFont('Arial','',10);
                         $pdf->SetTextColor(0,0,0);
                    foreach($Conjuntos as $conju){
                        foreach($conju as $conj){
                            if($conj['FLG_DWG'] == $des){
                                $pdf->Cell($w[0],6,$conj['FLG_DWG'],'LRB',0,'C');
                                $pdf->Cell($w[1],6,$conj['MAR_PEZ'],'LRB',0,'C');
                                $pdf->Cell($w[2],6,$conj['DES_PEZ'],'LRB',0,'C');
                                $pdf->Cell($w[3],6,$conj['QTA_PEZ'],'LRB',0,'C');
                                $pdf->Cell($w[4],6,$conj['PESO_QTA'],'LRB',0,'C');
                                $pdf->Cell($w[5],6,$conj['peso'],'LRB',0,'C');
                                $pdf->Ln();
                            }
                        }
                    } */
     }
     $NamePdf = $naome . '.pdf';
     $pdf->Cell(array_sum($w), 0, '', 'T');
     $pdf->Output('D', $NamePdf);
 }
开发者ID:system3d,项目名称:dbf-Importer,代码行数:63,代码来源:Conjuntos.php

示例11: array

$couleur_rgb_prim = func_SetRgbValueFromHex($coul_prim);
$couleur_rgb_sec = func_SetRgbValueFromHex($coul_sec);
define('FPDF_FONTPATH', './font/');
require './fpdf.php';
$lycee = "IUT";
$ville = "POITIERS";
$auteur = "Sébastien CELLES";
$auteur_mail = "s.celles@gmail.com";
$tick = array("no" => 0, "small" => 1, "big" => 2, "verybig" => 3);
$width = array("normal" => 0.1, "bold" => 0.35, "normal-bold" => 0.25);
$pdf = new FPDF();
$pdf->Open();
$pdf->SetAuthor($auteur);
$pdf->SetTitle('Génération de papiers spéciaux');
$pdf->SetMargins(0, 0);
$pdf->SetLineWidth($width["normal"]);
$pdf->SetAutoPageBreak(1);
$pdf->SetFont('Arial', '', 8);
$pdf->SetTextColor(0, 0, 0);
$date = date("d/m/Y à H:i:s");
switch ($_REQUEST['papier']) {
    // Génération papier quadrillé 5mm x 5mm
    case 1:
        for ($page = 1; $page <= $nb_papier; $page++) {
            $pdf->AddPage();
            $pdf->SetDrawColor($couleur_rgb_sec[0], $couleur_rgb_sec[1], $couleur_rgb_sec[2]);
            for ($i = 10; $i <= 280; $i += 5) {
                $pdf->Line(10, $i, 200, $i);
            }
            for ($i = 10; $i <= 200; $i += 5) {
                $pdf->Line($i, 10, $i, 280);
开发者ID:BackupTheBerlios,项目名称:openphysic-svn,代码行数:31,代码来源:gen_papier.php

示例12: creation_resume

function creation_resume($animal_id, $info_analyse, $info_radio, $info_formulaire, $variable)
{
    $filename = '../sauvegarde/animaux/' . $animal_id;
    if (!file_exists($filename)) {
        if (!mkdir($filename, 0755, true)) {
            die('Echec lors de la création des répertoires...');
        }
    }
    $info_veto = requetemysql::info_veterinaire(array('login' => strtolower($_SESSION['login'])));
    if (empty($info_veto)) {
        throw new Exception("Erreur dans la recherche des informations sur le vétérinaire");
    } else {
        $info_veto = json_decode($info_veto, true);
    }
    if ($_SESSION['login'] != $_SESSION['login2']) {
        $info_veto2 = requetemysql::info_veterinaire(array('login' => strtolower($_SESSION['login2'])));
        if (empty($info_veto2)) {
            throw new Exception("Erreur dans la recherche des informations sur le vétérinaire qui a réalisé la consultation");
        } else {
            $info_veto2 = json_decode($info_veto2, true);
        }
    }
    $pdf = new FPDF();
    $pdf->AddPage();
    $pdf->Image('../image/logo/essai1.jpg', 10, 6, 30);
    $pdf->SetFont('Times', '', 18);
    $titre3 = utf8_decode(stripslashes(ucfirst($info_veto[0]['nom'])));
    $w = $pdf->GetStringWidth(stripslashes($titre3)) + 6;
    $pdf->SetX((210 - $w) / 2);
    $pdf->Cell($w, 7, $titre3, 0, 'C');
    $pdf->Ln();
    $w = $pdf->GetStringWidth(utf8_decode(stripslashes($info_veto[0]['adresse']))) + 6;
    $pdf->SetX((210 - $w) / 2);
    $pdf->Cell($w, 7, utf8_decode(stripslashes($info_veto[0]['adresse'])), 0, 'C');
    $pdf->Ln();
    $w = $pdf->GetStringWidth(utf8_decode(stripslashes($info_veto[0]['code'] . " " . $info_veto[0]['commune']))) + 6;
    $pdf->SetX((210 - $w) / 2);
    $pdf->Cell($w, 7, utf8_decode(stripslashes($info_veto[0]['code'] . " " . $info_veto[0]['commune'])), 0, 'C');
    $pdf->Ln();
    $pdf->SetFont('Times', '', 12);
    $w = $pdf->GetStringWidth(utf8_decode(stripslashes($info_veto[0]['tel']))) + 6;
    $pdf->SetX((210 - $w) / 2);
    $pdf->Cell($w, 7, utf8_decode(stripslashes($info_veto[0]['tel'])), 0, 'C');
    $pdf->Ln(20);
    $pdf->MultiCell(85, 5, "Le " . date("d.m.y"), 0, 'L');
    $pdf->SetFont('Times', 'B', 12);
    $pdf->MultiCell(190, 7, requetemysql::gestion_string_maj("Résumé de la consultation du " . $info_formulaire['date_consultation'] . ", concernant :" . $_POST['caracteristique']), '0', 'L');
    $pdf->SetFont('Times', '', 12);
    if ($_SESSION['login'] != $_SESSION['login2']) {
        $pdf->MultiCell(190, 7, requetemysql::gestion_string_maj("Cette consultation a été réalisée par " . $info_veto2[0]['nom_vet'] . ", exerçant à :" . $info_veto2[0]['adresse'] . " " . $info_veto2[0]['code'] . " " . $info_veto2[0]['commune'] . ". Téléphone :" . $info_veto2[0]['tel']), '0', 'L');
        $pdf->Ln();
    }
    $pdf->SetFont('Times', '', 14);
    $pdf->SetFillColor(153, 153, 153);
    $pdf->SetTextColor(0, 0, 0);
    $pdf->SetDrawColor(153, 153, 153);
    $pdf->SetLineWidth(0.3);
    $pdf->MultiCell(190, 10, requetemysql::gestion_string_maj("Motif de consultation :" . $info_formulaire['barre_resume']), '0', 'L', true);
    $pdf->Ln();
    $pdf->SetFont('Times', '', 12);
    $pdf->MultiCell(190, 5, requetemysql::gestion_string_maj("Détail :" . $info_formulaire['clinique']), 0, 'L');
    $pdf->Ln(15);
    $pdf->Cell(50, 20, utf8_decode("signature du vétérinaire :"), 0, 0, false);
    if (count($info_analyse) > 0) {
        $pdf->AddPage();
        $pdf->Image('../image/logo/essai1.jpg', 10, 6, 30);
        $pdf->SetFont('Times', '', 18);
        $titre3 = utf8_decode(stripslashes(ucfirst($info_veto[0]['nom'])));
        $w = $pdf->GetStringWidth(stripslashes($titre3)) + 6;
        $pdf->SetX((210 - $w) / 2);
        $pdf->Cell($w, 7, $titre3, 0, 'C');
        $pdf->Ln();
        $w = $pdf->GetStringWidth(utf8_decode(stripslashes($info_veto[0]['adresse']))) + 6;
        $pdf->SetX((210 - $w) / 2);
        $pdf->Cell($w, 7, utf8_decode(stripslashes($info_veto[0]['adresse'])), 0, 'C');
        $pdf->Ln();
        $w = $pdf->GetStringWidth(utf8_decode(stripslashes($info_veto[0]['code'] . " " . $info_veto[0]['commune']))) + 6;
        $pdf->SetX((210 - $w) / 2);
        $pdf->Cell($w, 7, utf8_decode(stripslashes($info_veto[0]['code'] . " " . $info_veto[0]['commune'])), 0, 'C');
        $pdf->Ln();
        $pdf->SetFont('Times', '', 12);
        $w = $pdf->GetStringWidth(utf8_decode(stripslashes($info_veto[0]['tel']))) + 6;
        $pdf->SetX((210 - $w) / 2);
        $pdf->Cell($w, 7, utf8_decode(stripslashes($info_veto[0]['tel'])), 0, 'C');
        $pdf->Ln(20);
        $pdf->MultiCell(85, 5, "Le " . date("d.m.y"), 0, 'L');
        $pdf->SetFont('Times', 'B', 12);
        $pdf->MultiCell(190, 7, requetemysql::gestion_string_maj("Résultat d'analyse du " . $info_formulaire['date_consultation'] . ", concernant :" . $_POST['caracteristique']), '0', 'L');
        $pdf->SetFont('Times', '', 12);
        if ($_SESSION['login'] != $_SESSION['login2']) {
            $pdf->MultiCell(190, 7, requetemysql::gestion_string_maj("Ces analyses ont été réalisées par " . $info_veto2[0]['nom_vet'] . ", exerçant à :" . $info_veto2[0]['adresse'] . " " . $info_veto2[0]['code'] . " " . $info_veto2[0]['commune'] . ". Téléphone :" . $info_veto2[0]['tel']), '0', 'L');
        }
        $pdf->Ln();
        // Largeurs des colonnes
        $w = array(190 / 4, 190 / 6, 190 / 6, 190 / 4, 190 / 6);
        $header = array(utf8_decode('Référence'), utf8_decode('Résultat'), utf8_decode('Unité'), utf8_decode('Méthode'), utf8_decode("date d'analyse"));
        // En-tête
        for ($i = 0; $i < count($header); $i++) {
            $pdf->Cell($w[$i], 7, $header[$i], 1, 0, 'C');
        }
//.........这里部分代码省略.........
开发者ID:astrolabb,项目名称:aerogard3.2,代码行数:101,代码来源:nouvelleconsultation.php

示例13: facturarform


//.........这里部分代码省略.........
     $pdf->SetFont('Arial', 'B', 4);
     $pdf->Text(123, 33, "EDIF. CENTRO MARITIMO");
     $pdf->SetFont('Arial', 'B', 4);
     $pdf->Text(123, 35, "CO. CENTRO C.P. 82000");
     $pdf->SetFont('Arial', 'B', 4);
     $pdf->Text(125, 37, "MAZATLAN SINALOA");
     $pdf->SetFont('Arial', 'B', 4);
     $pdf->Text(125, 39, "TEL. 01 569 985-0844");
     //DIRECCION OFICINA VERACRUZ
     $pdf->SetFont('Arial', 'B', 6);
     $pdf->Text(152, 29, "SUC. VERACRUZ");
     $pdf->SetFont('Arial', 'B', 4);
     $pdf->Text(153, 31, "AV. 5 DE MAYO No 961");
     $pdf->SetFont('Arial', 'B', 4);
     $pdf->Text(152, 33, "DEPTO 2 ENTRE JUAREZ");
     $pdf->SetFont('Arial', 'B', 4);
     $pdf->Text(153, 35, "Y EMPARAM COL. CENTRO");
     $pdf->SetFont('Arial', 'B', 4);
     $pdf->Text(152, 37, "C.P. 91700 VERACRUZ VER");
     $pdf->SetFont('Arial', 'B', 4);
     $pdf->Text(152, 39, "TEL. 01 229 931-0416");
     //DIRECCION OFICINA MONTERREY
     $pdf->SetFont('Arial', 'B', 6);
     $pdf->Text(182, 29, "SUC. MONTERREY");
     $pdf->SetFont('Arial', 'B', 4);
     $pdf->Text(183, 31, "AV. ZARAGOZA No 1000");
     $pdf->SetFont('Arial', 'B', 4);
     $pdf->Text(182, 33, "DESP. 1010 COL. CENTRO");
     $pdf->SetFont('Arial', 'B', 4);
     $pdf->Text(182, 35, "C.P. 54000 MONTERREY N.L.");
     $pdf->SetFont('Arial', 'B', 4);
     $pdf->Text(184, 37, "TEL. 01 83 5345-1010");
     //LINEA HORIZONTAL
     $pdf->SetLineWidth(0.2);
     $pdf->Line(5, 40, 140, 40);
     $pdf->SetFont('Arial', 'B', 6);
     $pdf->Text(10, 43, "CLIENTE : ");
     $pdf->SetFont('Arial', 'B', 10);
     // Cliente
     $pdf->Text(24, 43, $cliente);
     $pdf->Text(24, 49, $calle);
     if (!empty($cp)) {
         $cpT = "C.P. {$cp}";
     } else {
         $cpT = "";
     }
     $dir = "{$noExt} {$noInt} {$colonia} {$cpT}";
     $pdf->SetFont('Arial', 'B', 6);
     $pdf->Text(10, 50, "DIRECCION : ");
     $pdf->SetFont('Arial', 'B', 10);
     $pdf->Text(24, 52, $dir);
     $pdf->SetFont('Arial', 'B', 6);
     $pdf->Text(10, 58, "TEL : ");
     $pdf->Text(60, 58, "R.F.C.");
     $pdf->SetFont('Arial', 'B', 10);
     $pdf->Text(24, 58, $tel);
     $pdf->Text(70, 58, $rfc);
     $pdf->SetFont('Arial', 'B', 6);
     $pdf->Text(10, 61, "CIUDAD : ");
     $pdf->SetFont('Arial', 'B', 10);
     $pdf->Text(24, 61, $ciudad);
     $pdf->Text(60, 64, $edo);
     //LINEA HORIZONTAL
     $pdf->SetLineWidth(0.2);
     $pdf->Line(156, 57, 193, 57);
     $pdf->SetLineWidth(0.2);
开发者ID:nesmaster,项目名称:anakosta,代码行数:67,代码来源:facMasEdi.php

示例14: strtoupper

$pdf->setfont('arial', 'B', 10);
$pdf->multicell(0, 4, 'ISSQN COM RETENÇÃO NA FONTE', 0, "C", 0);
$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);
开发者ID:arendasistemasintegrados,项目名称:mateusleme,代码行数:31,代码来源:recibopdf_old.php

示例15: dirname

        }
    }
}
$imgo = $map->drawlegend();
$nomer = $imgo->imagepath . "leg" . $nomeImagem . ".PNG";
$imgo->saveImage($nomer);
$pathlegenda = $dir_tmp . "/" . basename($imgo->imageurl) . "/" . basename($nomer);
$titulo = $_GET['titulo'];
substituiCon($map_file, $postgis_mapa);
require dirname(__FILE__) . '/../../pacotes/fpdf/fpdf.php';
$pdf = new FPDF("L", "mm", "A4");
$pdf->SetAutoPageBreak(false);
$pdf->SetDisplayMode(70, "single");
$pdf->SetMargins(0, 0, 0);
$pdf->AddPage("L");
$pdf->SetLineWidth(0.6);
$wMapaMax = 222;
$hMapaMax = 171;
$mapasize = getimagesize($pathMapa);
$wMapa = $mapasize[0];
$hMapa = $mapasize[1];
if ($wMapa / $wMapaMax > $hMapa / $hMapaMax) {
    $nW = $wMapaMax;
    $nH = $hMapa * $nW / $wMapa;
} else {
    $nH = $hMapaMax;
    $nW = $wMapa * $nH / $hMapa;
}
$pdf->Rect(3, 3, $nW + 69, 14, 'D');
//T&iacute;tulo
$pdf->SetFont('Arial', 'B', 18);
开发者ID:edmarmoretti,项目名称:i3geo,代码行数:31,代码来源:a4lpaisagempdf.php


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