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


PHP PDF::setXY方法代码示例

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


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

示例1: array

         }
     }
     $box_size = $img_size + 2 * $box_pad;
     $pdf->SetDrawColor(200, 200, 200);
     $pdf->SetLineWidth(0.2);
     $pdf->Rect($xpos, $ypos, $box_size, $box_size);
     $text_middling = 1;
     $xpos += $img_size + $spacing;
     $ypos += $text_middling;
     $data_array = array();
     $data_array[] = 'Code';
     $data_array[] = 'Qty';
     $data_array[] = 'Price';
     $data_array[] = 'J&G ID';
     $data = implode("\n", $data_array);
     $pdf->setXY($xpos, $ypos);
     $pdf->MultiCell($label_width, $line_height, $data);
     $xpos += $label_width;
     $qty = $elements_qty[$e['elements_id']];
     $data_array = array();
     $data_array[] = ': ' . $e['item_number'];
     $data_array[] = ': ' . $qty . ' piece(s)';
     $data_array[] = ': ' . displayCurrency($e['price_currency'], $e['elements_price']) . " / " . $e['price_quantity_type'];
     $data_array[] = ': ' . $e['elements_id'];
     //.' / '.$e['elements_code'];
     $data = implode("\n", $data_array);
     $pdf->setXY($xpos, $ypos);
     $pdf->MultiCell($value_width, $line_height, $data);
     $ypos += $img_size - $text_middling;
     $counter++;
 }
开发者ID:blasiuscosa,项目名称:manobo-2008,代码行数:31,代码来源:elements-picking-list-sourcing.php

示例2: count

 $mypdf->SetFont('Arial', '', 9);
 $x_axis = $mypdf->GetX();
 $y_axis = $mypdf->GetY();
 $sql = "SELECT count(ExCategory) from tbluserexpenses Where `UserName`= '{$User}' ";
 $res = $dbh->prepare($sql);
 $res->execute();
 $Rcnt = $res->fetchColumn();
 if ($Rcnt > 0) {
     $sql = "SELECT * from tbluserexpenses Where `UserName`= '{$User}' AND `Currency`='USD' AND ExCategory IN ('Flight','Railway','Taxi','Fairy','Bus') ORDER BY ExCategory,ClaimDate";
     $result = $dbh->prepare($sql);
     $result->execute();
     $RCount = $result->rowCount();
     if ($RCount > 0) {
         $y = $mypdf->GetY();
         if ($y != $y_axis) {
             $mypdf->setXY($x_axis, $y + 10);
         } else {
             $mypdf->setXY($x_axis, $y_axis);
         }
         while ($row = $result->fetch()) {
             $mypdf->SetFont('Arial', '', 9);
             $mypdf->Cell(30, 10, $row[1], 'LTR', 0, 'C');
             $x = $mypdf->GetX();
             $y = $mypdf->GetY();
             $mypdf->MultiCell(95, 5, $row[4], 'T', 'C');
             $mypdf->setXY($x + 95, $y);
             $mypdf->Cell(30, 10, $row[2], 'LT', 0, 'C');
             $mypdf->setXY($x + 125, $y);
             $Amt = "\$ " . $row[3];
             $mypdf->Cell(30, 10, $Amt, 'LTR', 0, 'C');
             $mypdf->Ln();
开发者ID:VulcanInfotech,项目名称:Xpensy,代码行数:31,代码来源:Get+PDF+Download.php

示例3: iconv

$pdf->AddFont('angsana', 'B', 'angsab.php');
// เพิ่มฟอนต์ภาษาไทยเข้ามา ตัวหนา  กำหนด ชื่อ เป็น angsana
$pdf->AddFont('angsana', 'I', 'angsai.php');
// เพิ่มฟอนต์ภาษาไทยเข้ามา ตัวหนา  กำหนด ชื่อ เป็น angsana
$pdf->AddFont('angsana', 'BI', 'angsaz.php');
$x_absolute = 25;
//พิกัด X
$y_absolute = 20;
//พิกัด Y
$r = 7;
//ระยะห่าง
$abs_x = 30;
##-- PAGE 1
##---- เลขหน้า ----------
$pdf->SetFont('angsana', '', 12);
$pdf->setXY($x_absolute + 160, $y_absolute - 10);
$pdf->MultiCell(0, 0, iconv('UTF-8', 'cp874', 'Page  1'));
##---- เลขหน้า ----------
$he = "The 8th Annual Meeting of the Thai Cleft Lip-Palate and Craniofacial Association : International Congress";
$he2 = "                                                     " . "Conference";
$he3 = "Theme : Comprehensive Cleft Car in Greater Mekong Subregion for Better Quality of Life";
$pdf->setXY($abs_x, $y_absolute + $r * 2);
$pdf->SetFont('angsana', '', 13);
$pdf->MultiCell(0, 0, iconv('UTF-8', 'cp874', ' ' . $he));
/*
$pdf->setXY( 10, $y_absolute +  ($r*3)  );
$pdf->SetFont('angsana','',13);
$pdf->MultiCell( 0  , 0 , iconv( 'UTF-8','cp874' ,' '.$he2)); 
*/
$pdf->setXY($abs_x, $y_absolute + $r * 3);
$pdf->SetFont('angsana', '', 13);
开发者ID:jutturong,项目名称:report_thaicleft,代码行数:31,代码来源:report_cleft_update.php

示例4:

     $pdf->AddPage();
     $x = 15.202;
     $y = 36.617;
 }
 if ($i % 3 == 0 && $i % 9 != 0) {
     $x = 15.202;
     $y += 76.268;
 }
 $pdf->ImageCenter("../" . $fila->imgpath, $x + $border, $y + $border, $w, $imgh);
 $codigo = $fila->codigo;
 if ($codigo != null) {
     $txt = utf8_decode("Código: " . $codigo);
     $pdf->SetFont('Arial', 'B', 8);
     $pdf->SetFillColor(255);
     $stringw = $pdf->GetStringWidth($txt);
     $pdf->setXY($x + $border + $w - $stringw, $y + $border + $imgh - 3);
     $pdf->Cell($stringw, 3, $txt, 0, 0, 'C', true);
 }
 $cellh = 3.6085;
 if (strcasecmp($fila->distincion, "no") == 0) {
     $txt = $fila->nombre;
 } else {
     $txt = $fila->nombre . " " . $fila->distincion . " " . $fila->descripcion;
 }
 $txt = utf8_decode($txt);
 $pdf->SetFont('Arial', '', 10);
 $pdf->SetXY($x + $border, $y + $border + $imgh);
 $pdf->MultiCell($w, 3.6085, $txt, 0, 'C');
 $pdf->Ln();
 $pdf->SetX($x);
 $txt = "\$U " . $fila->precio;
开发者ID:StockersSRL,项目名称:Lucas,代码行数:31,代码来源:catalogo.php

示例5: array

//CREATE ENVELOPE
//    echo "<pre>";var_dump($orders);die();
foreach ($orders as $po) {
    $firstorder = true;
    $pdf->AddPage();
    $pdf->current_page = 0;
    $margin_env = $margin + 10;
    $boxes_tab_env = $boxes_tab + 15;
    $ypos = $margin + 10;
    $ev_width = 170;
    $ev_height = 170;
    $dash_style = array('width' => 0.1, 'dash' => '2, 2');
    $solid_style = array('width' => 0.2, 'dash' => 0);
    $solid_style_med = array('width' => 0.4, 'dash' => 0);
    $pdf->Rect($margin_env, $ypos, $ev_width, $ev_height, 'D', array('all' => $dash_style));
    $pdf->setXY($margin_env + 10, $ypos + 5);
    $pdf->setFont('Arial', '', '12');
    //FILL JNG ADDRESS HEADER
    $jng_from = "JULIE & GRACE ({$sp_detail['jng_id']})";
    $hamburg_office_address = "{$jng_from}\n";
    $hamburg_office_address .= JNG_ADDRESS_STREET . "\n";
    $hamburg_office_address .= JNG_ADDRESS_ZIPCODE . " " . JNG_ADDRESS_CITY . "\n";
    $hamburg_office_address .= JNG_ADDRESS_COUNTRY;
    $pdf->MultiCell(100, $lineheight, $hamburg_office_address);
    $ypos = +30;
    $pdf->Line($boxes_tab_env, $ypos, 80, $ypos, $solid_style);
    $ypos += $lineheight;
    $pdf->Line($boxes_tab_env, $ypos, 80, $ypos);
    $ypos += $lineheight;
    $pdf->Line($boxes_tab_env, $ypos, 80, $ypos);
    $ypos += $lineheight;
开发者ID:blasiuscosa,项目名称:manobo-2008,代码行数:31,代码来源:AM.VD-packing-slip.php

示例6: iconv

// เพิ่มฟอนต์ภาษาไทยเข้ามา ตัวหนา  กำหนด ชื่อ เป็น angsana
$pdf->AddFont('angsana', 'B', 'angsab.php');
// เพิ่มฟอนต์ภาษาไทยเข้ามา ตัวหนา  กำหนด ชื่อ เป็น angsana
$pdf->AddFont('angsana', 'I', 'angsai.php');
// เพิ่มฟอนต์ภาษาไทยเข้ามา ตัวหนา  กำหนด ชื่อ เป็น angsana
$pdf->AddFont('angsana', 'BI', 'angsaz.php');
$x_absolute = 25;
//พิกัด X
$y_absolute = 20;
//พิกัด Y
$r = 7;
//ระยะห่าง
##-- PAGE 1
##---- เลขหน้า ----------
$pdf->SetFont('angsana', '', 12);
$pdf->setXY($x_absolute + 160, $y_absolute - 10);
$pdf->MultiCell(0, 0, iconv('UTF-8', 'cp874', 'Page  1'));
##---- เลขหน้า ----------
/*
    $he= "8 th Annual Meeting of the Thai Cleft Lip-Palate and Craniofacial Association : International";
    $he2="                                                     "."Conference";
    $he3="Theme : Comprehensive Cleft Car in Greater Mekong Subregion for Better Quality of Life";
##-- head table -----
$pdf->head_table(50,20,17,'',''.$he); //($x_absolute,$y_absolute,$fontSize,$b)   //หัวโปรแกรม
$pdf->head_table(50,25,17,'',''.$he2); //($x_absolute,$y_absolute,$fontSize,$b)   //หัวโปรแกรม
$pdf->head_table(50,30,17,'',''.$he3); //($x_absolute,$y_absolute,$fontSize,$b)   //หัวโปรแกรม
$pdf->SetFont('angsana','BU',20);
*/
/*
//$pdf->setXY( $x_absolute, $y_absolute +  ($r*1)  );
$pdf->setXY( 60, $y_absolute +  ($r*3)  );
开发者ID:jutturong,项目名称:report_pdf_thaicleft,代码行数:31,代码来源:report_cleft_update.php

示例7: array

$value_total = 0;
foreach ($contents as $page => $data) {
    $value[$page] = array();
    foreach ($data as $no => $c) {
        $value[$page][$no] = displayCurrency('USD', $c['pri']);
        $value_total += $c['pri'];
    }
}
$line_height = 4.5;
$head_line_height = $line_height + 2;
for ($p = 1; $p <= $page_counter; $p++) {
    if ($p > 1) {
        $pdf->AddPage();
        $ypos = $pdf->top_margin;
    }
    $pdf->setXY(10, 10);
    $pdf->Cell(20, $line_height, "Page {$p} of {$page_counter}");
    $xpos = $pdf->left_margin;
    foreach ($columns as $col => $header) {
        $pdf->SetXY($xpos, $ypos);
        $width = ${$col . '_width'};
        $pdf->MultiCell($width, $head_line_height, $header, 1, 'C');
        $xpos += $width;
    }
    $ypos += $head_line_height;
    $xpos = $pdf->left_margin;
    foreach ($columns as $col => $header) {
        $pdf->SetXY($xpos, $ypos);
        $width = ${$col . '_width'};
        $align = ${$col . '_align'};
        $pdf->MultiCell($width, $line_height, implode("\n", ${$col}[$p]), 1, $align);
开发者ID:blasiuscosa,项目名称:manobo-2008,代码行数:31,代码来源:invoices-returns.php

示例8: iconv

// เพิ่มฟอนต์ภาษาไทยเข้ามา ตัวหนา  กำหนด ชื่อ เป็น angsana
$pdf->AddFont('angsana', 'B', 'angsab.php');
// เพิ่มฟอนต์ภาษาไทยเข้ามา ตัวหนา  กำหนด ชื่อ เป็น angsana
$pdf->AddFont('angsana', 'I', 'angsai.php');
// เพิ่มฟอนต์ภาษาไทยเข้ามา ตัวหนา  กำหนด ชื่อ เป็น angsana
$pdf->AddFont('angsana', 'BI', 'angsaz.php');
$x_absolute = 25;
//พิกัด X
$y_absolute = 20;
//พิกัด Y
$r = 7;
//ระยะห่าง
##-- PAGE 1
##---- เลขหน้า ----------
$pdf->SetFont('angsana', '', 12);
$pdf->setXY($x_absolute + 160, $y_absolute - 10);
$pdf->MultiCell(0, 0, iconv('UTF-8', 'cp874', 'Page  1'));
##---- เลขหน้า ----------
$he = "8 th Annual Meeting of the Thai Cleft Lip-Palate and Craniofacial Association : International";
$he2 = "                                                     " . "Conference";
$he3 = "Theme : Comprehensive Cleft Car in Greater Mekong Subregion for Better Quality of Life";
##-- head table -----
$pdf->head_table(50, 20, 17, '', '' . $he);
//($x_absolute,$y_absolute,$fontSize,$b)   //หัวโปรแกรม
$pdf->head_table(50, 25, 17, '', '' . $he2);
//($x_absolute,$y_absolute,$fontSize,$b)   //หัวโปรแกรม
$pdf->head_table(50, 30, 17, '', '' . $he3);
//($x_absolute,$y_absolute,$fontSize,$b)   //หัวโปรแกรม
$pdf->SetFont('angsana', 'BU', 20);
//$pdf->setXY( $x_absolute, $y_absolute +  ($r*1)  );
$pdf->setXY(60, $y_absolute + $r * 3);
开发者ID:jutturong,项目名称:report_pdf_thaicleft,代码行数:31,代码来源:report_cleft.php

示例9: constructPIContent


//.........这里部分代码省略.........
             $margin_orderinfo = $margin + 50;
             $pdf->SetXY($margin_orderinfo, $YPOS);
             $pdf->Cell(100, $lineheight, 'Production Instruction ' . $o['id'] . ' (' . $i['counter'] . ') - print ' . ($i['print_count'] + 1));
             $YPOS += $lineheight + 1;
             //ORDER INFORMATION
             $lineheight = 3.5;
             $orderilbl = array();
             $orderinfo = array();
             $orderilbl[] = 'Ship To (Country)';
             $orderinfo[] = ': ' . trim($o['shipto_name']) . ($o['shipto_address'] != '' ? ' (' . $o['shipto_address'] . ')' : '');
             //Show shipping window date only for order which using amazon logistic
             if (in_array($o['jng_sp_id'], array_keys(getSalesPartnerUseAmazonLogistic())) && isset($i['shipping_window_open'])) {
                 $orderilbl[] = 'Shipping Window Date';
                 $orderinfo[] = ': ' . date('d. M Y', strtotime($i['shipping_window_open']));
             }
             /* Moved to below barcode
                $orderilbl[] = 'Process Date';
                $orderinfo[] = ': '.date('d. M Y', strtotime($i['prod_target_in']));
                 */
             $orderilbl[] = 'Customer Name';
             $vip_status = $o['customer_is_vip'] ? ' ( VIP )' : '';
             if ($is_ottob2b) {
                 $orderinfo[] = ': OTTO B2B';
             } else {
                 $orderinfo[] = ': ' . $o['customer'] . $vip_status;
             }
             //$orderilbl[] = 'Order Source / Customer Name';
             //$orderinfo[] = ': '.$o['customer_type'].' / '.$o['customer'];
             //$orderilbl[] = 'Product Qty x EAN (ID / Code)';
             //$orderinfo[] = ': '.intval($i['quantity']).' x '.$ean.' ('.$p['p']['products_id'].' / '.$p['p']['products_model'].')';
             $orderilbl[] = 'Product Qty x EAN';
             $orderinfo[] = ': ' . $product_qty . ' x ' . $ean;
             $pdf->setFont('Arial', '', $fontsize_med);
             $pdf->setXY($margin_orderinfo, $YPOS);
             $pdf->MultiCell(50, $lineheight, implode("\n", $orderilbl));
             $pdf->setXY($margin_orderinfo + 30, $YPOS);
             $pdf->MultiCell(100, $lineheight, implode("\n", $orderinfo));
             $maxline = count($orderilbl);
             $YPOS += $maxline * $lineheight + 10;
             //STOCK PREPARATION
             $pdf->setFont('Arial', 'B', $fontsize_big);
             if ($i['stock_status'] == 'D' && !$ignoreStockStatusDepot) {
                 //USE DEPOT STOCK
                 $lineheight = 6;
                 $pdf->SetXY($margin + 1, $YPOS);
                 $pdf->Cell(100, $lineheight, 'Depot Stock', 1, 0, 'C', true);
                 $YPOS += $lineheight + 3;
             } elseif ($i['stock_status'] == 'P') {
                 //USE FINISH GOOD STOCK
                 $lineheight = 6;
                 $pdf->SetXY($margin + 1, $YPOS);
                 $pdf->Cell(100, $lineheight, 'Finish Good', 1, 0, 'C', true);
                 $YPOS += $lineheight + 3;
             } else {
                 //USE ELEMENTS STOCK
                 $lineheight = 4;
                 $pdf->SetXY($margin, $YPOS);
                 $pdf->Cell(100, $lineheight, 'Elements Preparation');
                 $YPOS += $lineheight + 1;
                 $pue_total = count($p['elements']);
                 $pue_rows = ceil($pue_total / 2);
                 $max_rows_el_per_page_1 = 12;
                 //MAX ROWS ELEMENT ON PAGE 1
                 $max_rows_el_per_page_n = 14;
                 //MAX ROWS ELEMENT ON NEXT PAGE
                 $max_rows_el_per_page = $max_rows_el_per_page_1;
开发者ID:blasiuscosa,项目名称:manobo-2008,代码行数:67,代码来源:production_instruction_pdf.php

示例10: foreach

 $order_counter = 0;
 $order_counter_max = 6;
 $firstorder = true;
 foreach ($clean_picklists as $bin_code => $data) {
     if ($ypos >= 260 || $order_counter >= $order_counter_max) {
         $pdf->AddPage();
         $ypos = $margin;
         $order_counter = 0;
     } else {
         if (!$firstorder) {
             $pdf->SetDrawColor(200, 200, 200);
             $pdf->Line($margin - 5, $ypos - 5, 210 - $margin, $ypos - 5);
         }
     }
     $order_counter++;
     $pdf->setXY($margin, $ypos);
     $pdf->setFont('Arial', 'B', '14');
     $pdf->cell($counter_size, 5, $class_bin->getCleanBinCode($data['code']), 0, 0, 'C');
     if ($data['products_ean'] != '') {
         $pdf->EANBarcode($data['products_ean'], $barcode_start, $ypos, $barcode_width);
     }
     $pdf->setFont('Arial', 'B', '12');
     //$pdf->cell($barcode_start+20, 40, $data['products_ean'], 0, 0, 'C');
     $pdf->setXY($cellstart, $ypos);
     $pdf->setFont('Arial', 'B', '10');
     $pdf->Cell($cell1size, $cell_height, 'PRODUCT ID');
     $pdf->Cell($cell1size, $cell_height, 'ARTICLE ID');
     $pdf->Cell($counter_size + 10, $cell_height, 'QTY');
     $pdf->Cell($counter_size, $cell_height, 'QTY ACTUAL', 0, 1);
     $pdf->setFont('Arial', '', '10');
     $pdf->setX($cellstart);
开发者ID:blasiuscosa,项目名称:manobo-2008,代码行数:31,代码来源:racks-cleareance-picklist.php

示例11:

$pdf->SetXY($margin, $pdf->ypos);
//Order Items
if (count($items) > 0) {
    //DRAW BARCODE
    $items_key = array_keys($items);
    $barcode_width = 35;
    $pdf->order_barcode = 'JR-' . $items[$items_key[0]]['jng_sp_orders_items_id'];
    $sh_name = "{$order['customer_shipping_title']} {$order['customer_shipping_firstname']} {$order['customer_shipping_lastname']}";
    $sh_addr = "{$order['customer_shipping_address']} {$order['customer_shipping_address2']}";
    $sh_city = "{$order['customer_shipping_postcode']} {$order['customer_shipping_city']}";
    $feedback = 'Bestellformular an desiree.bock@julie-grace.de oder per Fax an: 04065584051';
    $logo_height = 8;
    $pdf->Image(FPDF_IMGPATH . 'jng-logo.png', $margin, $pdf->ypos, 64.5, $logo_height);
    $pdf->setFont('Arial', 'B', $fontsize_med);
    $pdf->ypos += $logo_height + 2;
    $pdf->setXY($margin, $pdf->ypos);
    $pdf->Cell(80, $lineheight, $sh_name, 0, 1);
    $pdf->setFont('Arial', '', $fontsize_med);
    $pdf->Cell(80, $lineheight, $sh_addr, 0, 1);
    $pdf->Cell(80, $lineheight, $sh_city, 0, 0);
    $pdf->Cell(80, $lineheight, $feedback, 0, 1);
    $pdf->OrderBarcode(297 - ($margin + $barcode_width), $margin, $barcode_width);
    $pdf->ypos += 15;
    $lineheight = 5;
    $pdf->setXY($colpos, $pdf->ypos);
    $pdf->setFont('Arial', 'B', $fontsize_med);
    $pdf->SetFillColor(191, 191, 191);
    $pdf->Cell($col_subcol_width[1], $lineheight, 'Pos.', 1, 0, 'C', true);
    $pdf->Cell($col_subcol_width[2], $lineheight, 'Bild', 1, 0, 'C', true);
    $pdf->Cell($col_subcol_width[3], $lineheight, 'Größe', 1, 0, 'C', true);
    $pdf->Cell($col_subcol_width[4], $lineheight, 'Produktkategorie', 1, 0, 'C', true);
开发者ID:blasiuscosa,项目名称:manobo-2008,代码行数:31,代码来源:delivery-document-retails.php

示例12: iconv

// เพิ่มฟอนต์ภาษาไทยเข้ามา ตัวหนา  กำหนด ชื่อ เป็น angsana
$pdf->AddFont('angsana', 'B', 'angsab.php');
// เพิ่มฟอนต์ภาษาไทยเข้ามา ตัวหนา  กำหนด ชื่อ เป็น angsana
$pdf->AddFont('angsana', 'I', 'angsai.php');
// เพิ่มฟอนต์ภาษาไทยเข้ามา ตัวหนา  กำหนด ชื่อ เป็น angsana
$pdf->AddFont('angsana', 'BI', 'angsaz.php');
$x_absolute = 25;
//พิกัด X
$y_absolute = 20;
//พิกัด Y
$r = 7;
//ระยะห่าง
##-- PAGE 1
##---- เลขหน้า ----------
$pdf->SetFont('angsana', '', 12);
$pdf->setXY($x_absolute + 160, $y_absolute - 10);
$pdf->MultiCell(0, 0, iconv('UTF-8', 'cp874', 'Page  1/2'));
##---- เลขหน้า ----------
##-- head table -----
$pdf->head_table(70, 20, 25, 'b');
//($x_absolute,$y_absolute,$fontSize,$b)   //หัวโปรแกรม
$pdf->SetFont('angsana', 'BU', 20);
//$pdf->setXY( $x_absolute, $y_absolute +  ($r*1)  );
$pdf->setXY(60, $y_absolute + $r * 1);
$pdf->SetFont('angsana', 'B', 18);
//$pdf->MultiCell( 0  , 0 , iconv( 'UTF-8','cp874' , 'คลินิคผู้ป่วยนอกโรคลมชัก โรงพยาบาลศรีนครินทร์' ));
$pdf->MultiCell(0, 0, iconv('UTF-8', 'cp874', "" . 'Academic service and Research Unit: Pharmaceutical care service'));
$pdf->setXY(60, $y_absolute + $r * 2);
$pdf->SetFont('angsana', 'B', 19);
//$pdf->MultiCell( 0  , 0 , iconv( 'UTF-8','cp874' , 'คลินิคผู้ป่วยนอกโรคลมชัก โรงพยาบาลศรีนครินทร์' ));
$pdf->MultiCell(0, 0, iconv('UTF-8', 'cp874', "                " . 'Faculty of Pharmaceutical Sciences KKU'));
开发者ID:jutturong,项目名称:van-com_20-1-59,代码行数:31,代码来源:report_case2.php

示例13: iconv

$r = 7;
//ระยะห่าง
##-- PAGE 1
##---- เลขหน้า ----------
/*
   $pdf->SetFont('angsana','',12);
   $pdf->setXY( $x_absolute + 160 , $y_absolute - 10 );
   $pdf->MultiCell( 0  , 0 , iconv( 'UTF-8','cp874' , 'Page  1' )  );
*/
##---- เลขหน้า ----------
##-- head table -----
$pdf->head_table(45, 20, 17, 'b');
//($x_absolute,$y_absolute,$fontSize,$b)   //หัวโปรแกรม
$pdf->SetFont('angsana', 'BU', 20);
//$pdf->setXY( $x_absolute, $y_absolute +  ($r*1)  );
$pdf->setXY(40, $y_absolute + $r * 1);
$pdf->SetFont('angsana', 'B', 18);
//$pdf->MultiCell( 0  , 0 , iconv( 'UTF-8','cp874' , 'คลินิคผู้ป่วยนอกโรคลมชัก โรงพยาบาลศรีนครินทร์' ));
$pdf->MultiCell(0, 0, iconv('UTF-8', 'cp874', "" . ' Tawanchai  Foundation for Cleft Lip , Cleft Palate and Craniofacial Deformities (TFC) '));
$pdf->setXY(40, $y_absolute + $r * 2);
$pdf->SetFont('angsana', 'B', 12);
//$pdf->MultiCell( 0  , 0 , iconv( 'UTF-8','cp874' , 'คลินิคผู้ป่วยนอกโรคลมชัก โรงพยาบาลศรีนครินทร์' ));
$pdf->MultiCell(0, 0, iconv('UTF-8', 'cp874', "" . 'สำนักงาน  '));
$pdf->setXY(60, $y_absolute + $r * 2);
$pdf->SetFont('angsana', '', 12);
//$pdf->MultiCell( 0  , 0 , iconv( 'UTF-8','cp874' , 'คลินิคผู้ป่วยนอกโรคลมชัก โรงพยาบาลศรีนครินทร์' ));
$pdf->MultiCell(0, 0, iconv('UTF-8', 'cp874', "อาคารคณะแพทยศาสตร์ มหาวิทยาลัยขอนแก่น 123 ถ.มิตรภาพ ต.ในเมือง อ.เมือง จ.ขอนแก่น 40002 "));
$pdf->setXY(40, $y_absolute + $r * 3);
$pdf->SetFont('angsana', 'B', 12);
//$pdf->MultiCell( 0  , 0 , iconv( 'UTF-8','cp874' , 'คลินิคผู้ป่วยนอกโรคลมชัก โรงพยาบาลศรีนครินทร์' ));
$pdf->MultiCell(0, 0, iconv('UTF-8', 'cp874', "" . ' Office '));
开发者ID:jutturong,项目名称:donate,代码行数:31,代码来源:report_case2.php

示例14: date

        $this->Cell(0, 10, 'Page ' . $this->PageNo() . '/{nb}', 0, 0, 'C');
    }
}
$tgl = date('d - m - Y');
$pdf = new PDF();
$pdf->AliasNbPages();
$pdf->AddPage();
$pdf->SetFont('Times', '', 12);
//$pdf->text(90,30,'PT. NYALINDUNG');
$tahun = $_GET['tahun'];
$pdf->text(55, 36, 'LAPORAN ANGGOTA KOPERASI PT. MEDAN JAYA ' . $tahun);
$yi = 50;
$ya = 44;
$pdf->setFont('Arial', '', 6);
$pdf->setFillColor(222, 222, 222);
$pdf->setXY(35, $ya);
$pdf->CELL(20, 5, 'NO ANGGOTA', 1, 0, 'C', 1);
$pdf->CELL(20, 5, 'NAMA', 1, 0, 'C', 1);
$pdf->CELL(25, 5, 'NO KTP', 1, 0, 'C', 1);
$pdf->CELL(30, 5, 'ALAMAT', 1, 0, 'C', 1);
$pdf->CELL(15, 5, 'KOTA', 1, 0, 'C', 1);
$pdf->CELL(15, 5, 'AKTIVASI', 1, 0, 'C', 1);
$ya = $yi + $row;
include "../config/koneksi.php";
$tahun = $_GET['tahun'];
$sql = mysql_query("select * from mst_anggota where status_pegawai = 0") or die("salah sql");
$i = 1;
$no = 1;
$max = 31;
$row = 6;
while ($data = mysql_fetch_array($sql)) {
开发者ID:ariborneo,项目名称:penjualan_koperasi,代码行数:31,代码来源:cetak_anggota_pdf.php

示例15: iconv

     $interview_lastname = $row->interview_lastname;
 }
 //$pdf->SetFont('angsana','B',12);
 //$pdf->setXY( $x_absolute + 160 , $y_absolute - 20 );
 //$pdf->MultiCell( 0  , 0 , iconv( 'UTF-8','cp874' , 'หน้า  1' )  );
 //$pdf->header_($x_absolute,$y_absolute);
 $pdf->header_number($x_absolute, $y_absolute, 1);
 //	$pdf->SetFont('angsana','B',18);
 //	$pdf->setXY( $x_absolute + 20 , $y_absolute - 10 );
 //	$pdf->MultiCell( 0  , 0 , iconv( 'UTF-8','cp874' , '(Appendix 1) แบบบันทึกข้อมูลพื้นฐานของผู้ป่วยเมื่อเริ่มการรักษา (first visit)' )  );
 $pdf->title1_($x_absolute, $y_absolute);
 //หัวโปรแกรม
 //$va=" (Appendix 1) แบบบันทึกข้อมูลพื้นฐานของผู้ป่วยเมื่อเริ่มการรักษา (first visit) ";
 //$pdf->title1_($x_absolute,$y_absolute,$va);  //หัวโปรแกรม
 $pdf->SetFont('angsana', '', 16);
 $pdf->setXY($x_absolute, $y_absolute);
 $pdf->MultiCell(0, 0, iconv('UTF-8', 'cp874', 'HN : ' . $HN . ''));
 $pdf->setXY($x_absolute, $y_absolute + $r * 1);
 $pdf->MultiCell(0, 0, iconv('UTF-8', 'cp874', 'เลขที่บัตรประชาชน : ' . $person_id . ''));
 $pdf->setXY($x_absolute, $y_absolute + $r * 2);
 $pdf->MultiCell(0, 0, iconv('UTF-8', 'cp874', 'Epilepsy No : ' . $ep_no . ''));
 $pdf->setXY($x_absolute, $y_absolute + $r * 3);
 $pdf->MultiCell(0, 0, iconv('UTF-8', 'cp874', 'ชื่อ - นามสกุล : ' . $name . '  ' . $surname . ''));
 $pdf->setXY($x_absolute, $y_absolute + $r * 4);
 $pdf->MultiCell(0, 0, iconv('UTF-8', 'cp874', 'เพศ : ' . $sex_detail . ''));
 $pdf->setXY($x_absolute, $y_absolute + $r * 5);
 $pdf->MultiCell(0, 0, iconv('UTF-8', 'cp874', 'จังหวัด : ' . $prov_name . ''));
 $pdf->setXY($x_absolute, $y_absolute + $r * 6);
 $pdf->MultiCell(0, 0, iconv('UTF-8', 'cp874', 'อำเภอ : ' . @$amphur_name . ''));
 $pdf->setXY($x_absolute, $y_absolute + $r * 7);
 $pdf->MultiCell(0, 0, iconv('UTF-8', 'cp874', 'ตำบล : ' . @$district_name . ''));
开发者ID:jutturong,项目名称:esn2_complete_18-1-59,代码行数:31,代码来源:report_app.php


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