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


PHP PDF::Text方法代码示例

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


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

示例1: PDF

    }
}
$pdf = new PDF('P', 'mm', array(76, 300));
date_default_timezone_set('America/Guayaquil');
$fecha = date('Y-m-d H:i:s', time());
$pdf->AddPage();
$pdf->SetMargins(0, 0, 0, 0);
$pdf->Ln(0);
$pdf->SetFont('Arial', '', 10);
$sql = pg_query("select id_factura_venta,num_factura,nombre_empresa,telefono_empresa,direccion_empresa,email_empresa,pagina_web,ruc_empresa,nombres_cli,identificacion,direccion_cli,telefono,ciudad,fecha_actual,forma_pago,fecha_cancelacion,nombre_usuario,apellido_usuario,direccion_cli from factura_venta,clientes,empresa,usuario where factura_venta.id_cliente=clientes.id_cliente and empresa.id_empresa=factura_venta.id_empresa and factura_venta.id_usuario=usuario.id_usuario and factura_venta.id_factura_venta='{$_GET['id']}'");
$numfilas = pg_num_rows($sql);
for ($i = 0; $i < $numfilas; $i++) {
    $fila = pg_fetch_row($sql);
    $pdf->SetFont('Arial', '', 10);
    $pdf->SetX(0);
    $pdf->Text(2, 3, utf8_decode('' . "RUC:"), 0, 'C', 0);
    ////CLIENTE (X,Y)
    $pdf->Text(20, 3, utf8_decode('' . strtoupper($fila[9])), 0, 'C', 0);
    ////CLIENTE (X,Y)
    $pdf->Text(2, 8, utf8_decode('' . "CLIENTE:"), 0, 'C', 0);
    ////CLIENTE (X,Y)
    $pdf->Text(20, 8, utf8_decode('' . strtoupper($fila[8])), 0, 'C', 0);
    ////CLIENTE (X,Y)
    $pdf->Text(2, 13, utf8_decode('' . "DIR.:"), 0, 'C', 0);
    ////CLIENTE (X,Y)
    $pdf->Text(20, 13, utf8_decode('' . strtoupper($fila[18])), 0, 'C', 0);
    ////CLIENTE (X,Y)
    $pdf->Text(2, 18, utf8_decode('' . "FECHA.:"), 0, 'C', 0);
    ////CLIENTE (X,Y)
    $pdf->Text(20, 18, utf8_decode('' . strtoupper($fila[13])), 0, 'C', 0);
    ////CLIENTE (X,Y)
开发者ID:kailIII,项目名称:catalogo,代码行数:31,代码来源:factura_venta3.php

示例2: substr

    $cliente = $row[10];
    $ci_ruc = $row[9];
    $direccion = $row[11];
    $telefono = $row[12];
    $fecha = $row[2];
    $nro_fac = substr($row[1], 8);
    $iva0 = $row[3];
    $iva12 = $row[4];
    $iva_venta = $row[5];
    $descuento_venta = $row[6];
    $total_venta = $row[7];
    $estado = $row[13];
}
/////////header
$pdf->SetFont('Arial', 'B', 10);
$pdf->Text(113, 21, maxCaracter(utf8_decode($nro_fac), 20), 1, 0, 'L', 0);
$pdf->Text(265, 21, maxCaracter(utf8_decode($nro_fac), 20), 1, 0, 'L', 0);
/////////medio
$pdf->SetFont('Amble-Regular', '', 9);
$pdf->Text(30, 48, maxCaracter(utf8_decode($cliente), 80), 1, 0, 'L', 0);
/////cliente
$pdf->Text(30, 55, maxCaracter(utf8_decode($direccion), 35), 1, 0, 'L', 0);
////direccion
$pdf->Text(113, 55, maxCaracter(utf8_decode($telefono), 20), 1, 0, 'L', 0);
////telefono
$pdf->Text(30, 62, maxCaracter(utf8_decode($ci_ruc), 20), 1, 0, 'L', 0);
////ruc ci
$pdf->Text(113, 62, maxCaracter(utf8_decode($fecha), 20), 1, 0, 'L', 0);
/////fecha
$pdf->Text(180, 48, maxCaracter(utf8_decode($cliente), 80), 1, 0, 'L', 0);
/////cliente
开发者ID:Oskrin,项目名称:neltex_formulario,代码行数:31,代码来源:nota_venta.php

示例3: substr

    $direccion = $row[11];
    $telefono = $row[12];
    $fecha = $row[2];
    $nro_fac = substr($row[1], 8);
    $iva0 = $row[3];
    $iva12 = $row[4];
    $iva_venta = $row[5];
    $descuento_venta = $row[6];
    $total_venta = $row[7];
    $estado = $row[13];
}
/////////header
$pdf->SetFont('Arial', 'B', 10);
/////////medio
$pdf->SetFont('Amble-Regular', '', 10);
$pdf->Text(30, 42, maxCaracter(utf8_decode($cliente), 80), 1, 0, 'L', 0);
/////cliente
$pdf->Text(30, 48, maxCaracter(utf8_decode($fecha), 20), 1, 0, 'L', 0);
/////fecha
$pdf->Text(30, 53, maxCaracter(utf8_decode($direccion), 35), 1, 0, 'L', 0);
////direccion
$pdf->Text(155, 42, maxCaracter(utf8_decode($ci_ruc), 20), 1, 0, 'L', 0);
////ruc ci
$pdf->Text(155, 48, maxCaracter(utf8_decode($telefono), 20), 1, 0, 'L', 0);
////telefono
if ($estado == 'Pasivo') {
    $pdf->SetTextColor(249, 33, 33);
    $pdf->RotatedImage('../images/circle.png', 110, 42, 30, 10, 45);
    $pdf->RotatedText(120, 41, 'ANULADO!', 45);
    $pdf->RotatedImage('../images/circle.png', 260, 42, 30, 10, 45);
    $pdf->RotatedText(269, 41, 'ANULADO!', 45);
开发者ID:Oskrin,项目名称:comisariato,代码行数:31,代码来源:factura_venta_trabajo.php

示例4:

 $pdf->Cell(40, 12, 'Grado di apprendimento ', 0, 0, 'R', 1);
 $pdf->Rect($x, $y, 40, 12);
 $pdf->Rect($pdf->GetX(), $pdf->GetY(), 135, 12);
 $pdf->SetFont('abalc', '', 9);
 $pdf->Cell(27, 6, 'Gravemente insuff.', 0, 0, 'C');
 $pdf->Cell(27, 6, 'Insufficiente', 0, 0, 'C');
 $pdf->Cell(27, 6, 'Sufficiente', 0, 0, 'C');
 $pdf->Cell(27, 6, 'Buono', 0, 0, 'C');
 $pdf->Cell(27, 6, 'Ottimo', 0, 1, 'C');
 $pdf->Rect(70, $pdf->GetY(), 3, 3);
 $pdf->Rect(97, $pdf->GetY(), 3, 3);
 $pdf->Rect(124, $pdf->GetY(), 3, 3);
 $pdf->Rect(151, $pdf->GetY(), 3, 3);
 $pdf->Rect(178, $pdf->GetY(), 3, 3);
 $pdf->Rect($x, $y + 12, 175, 8);
 $pdf->Text($x + 2, $y + 17, "Note:");
 $y += 20;
 $pdf->SetXY($x, $y);
 $pdf->Rect($x, $y, 40, 12, 'DF');
 $pdf->SetFont('abac', '', 10);
 $pdf->Cell(40, 5, 'Abilità acquisite ', 0, 1, 'R');
 $pdf->SetFont('abalc', '', 8);
 $pdf->MultiCell(39, 3, 'Capacità di rendersi autonomo nello svolgere i compiti assegnati', 0, 'R');
 $pdf->Rect($x + 40, $y, 135, 12);
 $pdf->SetXY($x + 40, $y);
 $pdf->SetFont('abalc', '', 9);
 $pdf->Cell(27, 6, 'Gravemente insuff.', 0, 0, 'C');
 $pdf->Cell(27, 6, 'Insufficiente', 0, 0, 'C');
 $pdf->Cell(27, 6, 'Sufficiente', 0, 0, 'C');
 $pdf->Cell(27, 6, 'Buono', 0, 0, 'C');
 $pdf->Cell(27, 6, 'Ottimo', 0, 2, 'C');
开发者ID:andreazurli,项目名称:stage-ng,代码行数:31,代码来源:schvalutaz.php

示例5: substr

    $cliente = $row[10];
    $ci_ruc = $row[9];
    $direccion = $row[11];
    $telefono = $row[12];
    $fecha = $row[2];
    $nro_fac = substr($row[1], 8);
    $iva0 = $row[3];
    $iva12 = $row[4];
    $iva_venta = $row[5];
    $descuento_venta = $row[6];
    $total_venta = $row[7];
    $estado = $row[13];
}
/////////header
$pdf->SetFont('Arial', 'B', 10);
$pdf->Text(113, 21, maxCaracter(utf8_decode($nro_fac), 20), 1, 0, 'L', 0);
$pdf->Text(265, 21, maxCaracter(utf8_decode($nro_fac), 20), 1, 0, 'L', 0);
/////////medio
$pdf->SetFont('Amble-Regular', '', 10);
$pdf->Text(30, 48, maxCaracter(utf8_decode($cliente), 80), 1, 0, 'L', 0);
/////cliente
$pdf->Text(30, 55, maxCaracter(utf8_decode($direccion), 50), 1, 0, 'L', 0);
////direccion
$pdf->Text(113, 55, maxCaracter(utf8_decode($telefono), 20), 1, 0, 'L', 0);
////telefono
$pdf->Text(30, 62, maxCaracter(utf8_decode($ci_ruc), 20), 1, 0, 'L', 0);
////ruc ci
$pdf->Text(113, 62, maxCaracter(utf8_decode($fecha), 20), 1, 0, 'L', 0);
/////fecha
$pdf->Text(180, 48, maxCaracter(utf8_decode($cliente), 80), 1, 0, 'L', 0);
/////cliente
开发者ID:kailIII,项目名称:catalogo,代码行数:31,代码来源:factura_venta2.php

示例6: substr

            $code .= $codes[$p[$i - 1]][$barcode[$i]];
        }
        $code .= '01010';
        for ($i = 7; $i <= 12; $i++) {
            $code .= $codes['C'][$barcode[$i]];
        }
        $code .= '101';
        //Draw bars
        for ($i = 0; $i < strlen($code); $i++) {
            if ($code[$i] == '1') {
                $this->Rect($x + $i * $w, $y, $w, $h, 'F');
            }
        }
        //Print text uder barcode
        $this->SetFont('Arial', '', 5);
        $this->Text($x + 7, $y + $h + 6 / $this->k, substr($barcode, -$len));
    }
}
$pdf = new PDF();
//define('EURO',chr(128));
$pdf = new PDF(L, mm, array(29, 18));
$pdf->Open();
$pdf->AddPage();
$pdf->SetFont('Arial', '', 5);
$pdf->Text(2, 3, $descripcion);
$pdf->EAN13(1, 4, $codigobarras);
$pdf->SetFont('Arial', '', 7);
$pdf->Text(1, 16, "Ref.: " . $referencia);
//$pdf->SetFont('Arial','',9);
//$pdf->Text(5,23,"PVP: ".$precio." ".EURO);
$pdf->Output();
开发者ID:linuxman,项目名称:uycodeka,代码行数:31,代码来源:codigo.php

示例7: key

 $pdf->setFont('Arial', 'B', '16');
 $po = key($sscc_po_list);
 $shipping_address = array();
 $shipping_address[] = $orders_data[$po]['customer_shipping_address'];
 $shipping_address[] = $orders_data[$po]['customer_shipping_address2'];
 $shipping_address[] = $orders_data[$po]['customer_shipping_postcode'] . " " . $orders_data[$po]['customer_shipping_city'];
 $shipping_address[] = $orders_data[$po]['customer_shipping_country'];
 $shipping_address[] = "[" . $orders_data[$po]['customer_shipping_id'] . "]";
 $shipping_address_text = implode("\n", $shipping_address);
 $pdf->MultiCell(100, $lineheight + 2, $shipping_address_text);
 $ypos += 40;
 $asn_code = "ASN" . $asns[$sscc];
 $pdf->drawPackageBarcode($asn_code, $boxes_tab_env, $ypos, 0, $barcode_width);
 $ypos += 24;
 $pdf->setFont('Arial', '', '15');
 $pdf->Text($boxes_tab_env, $ypos, $asn_code);
 $ypos += 10;
 $pdf->setFont('Arial', 'B', '17');
 $pdf->Text($boxes_tab_env, $ypos, 'SSCC #:');
 $ypos += 2;
 $pdf->drawPackageBarcode($sscc, $boxes_tab_env, $ypos, 0, $barcode_width);
 $ypos += 24;
 $pdf->setFont('Arial', '', '15');
 $pdf->Text($boxes_tab_env, $ypos, $sscc);
 $ypos += 20;
 $pdf->setFont('Arial', 'B', '14');
 $pdf->Text($boxes_tab_env, $ypos, "From:");
 $pdf->Line($boxes_tab_env + 39, $ypos + 1, 150, $ypos + 1, $solid_style_med);
 $pdf->setFont('Arial', '', '12');
 $pdf->Text($boxes_tab_env + 45, $ypos, $jng_from);
 $ypos += 10;
开发者ID:blasiuscosa,项目名称:manobo-2008,代码行数:31,代码来源:AM.VD-packing-slip-SSCC.php

示例8:

     if ($is_product_field) {
         $pdf->SetFont($pdf->font, NORMAL, $pdf->invoice_font_size);
     }
 }
 $Y_Table_Position += $pdf->lines_height;
 if ($attributes) {
     //Print attributes
     $pdf->SetFont($pdf->font, ITALIC, 9);
     $x = $x_pos[$products_field_item] + 2;
     $w = $products_field_width - 2;
     $y = $Y_Table_Position + $pdf->lines_height * 0.6;
     for ($a = 0, $m = $attributes - 1; $a <= $m; $a++) {
         $current_attribute = $current_product_attributes[$a];
         $txt = '- ' . $current_attribute['option'] . COLON_BLANK . $current_attribute['value'];
         $txt = fit_string($txt, $w);
         $pdf->Text($x, $y, $txt);
         $y += $pdf->lines_height;
     }
     $pdf->SetFont($pdf->font, NORMAL, $pdf->invoice_font_size);
     //$pdf->SetY($Y_Table_Position+$attributes*$pdf->lines_height);
     $Y_Table_Position += $pdf->lines_height * $attributes;
 }
 $item_count++;
 //Check for products overflow (i.e.: more then one page required
 $break_page = $item_count % $invoice_items_per_page == 0;
 if ($break_page) {
     if ($i != $n) {
         //Overflow if more products to come!
         new_page();
     }
 }
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:31,代码来源:pdf_invoice.php

示例9: substr

    $telefono = $row[12];
    $ciudad = $row[13];
    $pago = $row[14];
    $fecha = $row[2];
    $nro_fac = substr($row[1], 8);
    $iva0 = $row[3];
    $iva12 = $row[4];
    $iva_venta = $row[5];
    $descuento_venta = $row[6];
    $total_venta = $row[7];
    $estado = $row[15];
}
// Cabezera Factura
$pdf->SetFont('Arial', 'B', 10);
$pdf->SetFont('Amble-Regular', '', 10);
$pdf->Text(30, 77, maxCaracter(utf8_decode($cliente), 50), 1, 0, 'L', 0);
/////cliente
$pdf->Text(30, 82, maxCaracter(utf8_decode($ci_ruc), 20), 1, 0, 'L', 0);
/////identificacion
$pdf->Text(30, 87, maxCaracter(utf8_decode($direccion), 35), 1, 0, 'L', 0);
////direccion
$pdf->Text(30, 93, maxCaracter(utf8_decode($telefono), 35), 1, 0, 'L', 0);
////telefono
$pdf->Text(88, 92, maxCaracter(utf8_decode($ciudad), 35), 1, 0, 'L', 0);
////ciudad
$pdf->Text(165, 77, maxCaracter(utf8_decode($fecha), 20), 1, 0, 'L', 0);
////fecha
$pdf->Text(165, 82, maxCaracter(utf8_decode($pago), 20), 1, 0, 'L', 0);
////forma pago
if ($estado == 'Pasivo') {
    $pdf->SetTextColor(249, 33, 33);
开发者ID:Oskrin,项目名称:neltex_formulario,代码行数:31,代码来源:factura_venta_trabajo.php

示例10:

$troca = 1;
$cabec = false;
for ($i = 0; $i < $numrows; $i++) {
    //   $pdf->setx(5);
    if ($pdf->GetY() > $pdf->h - 30 || $troca != 0) {
        //   if ($linha++ > 45 ){
        $troca = 0;
        $linha = 0;
        $pdf->AddPage();
        $pdf->setxy(5, 35);
        $X = 5;
        $Y = 38;
        $pdf->SetFont('Arial', 'B', 8);
        if (!$cabec) {
            $pdf->Cell(0, 21, '', "TB", 0, 'C');
            $pdf->Text($X, $Y, "Numcgm:");
            $pdf->Text($X + 40, $Y, $outros);
            $pdf->Text($X, $Y + 4, "Nome:");
            $pdf->Text($X, $Y + 8, "CNPJ/CPF:");
            $pdf->Text($X + 45, $Y + 8, "Identidade:");
            $pdf->Text($X, $Y + 12, "Endereço:");
            $pdf->Text($X + 110, $Y + 12, "Número:");
            $pdf->Text($X + 155, $Y + 12, "Complemento:");
            $pdf->Text($X, $Y + 16, "Município:");
            $pdf->Text($X + 55, $Y + 16, "UF:");
            $pdf->SetFont('Arial', 'I', 8);
            $pdf->Text($X + 18, $Y, pg_result($dados, 0, "z01_numcgm"));
            $pdf->Text($X + 18, $Y + 4, pg_result($dados, 0, "z01_nome"));
            $pdf->Text($X + 18, $Y + 8, db_cgccpf(pg_result($dados, 0, "z01_cgccpf")));
            $pdf->Text($X + 18 + 45, $Y + 8, pg_result($dados, 0, "z01_ident"));
            $pdf->Text($X + 18, $Y + 12, pg_result($dados, 0, "z01_ender"));
开发者ID:arendasistemasintegrados,项目名称:mateusleme,代码行数:31,代码来源:cai3_gerfinanc013.php

示例11: PDF

    }
}
$pdf = new PDF('P', 'mm', 'a4');
$pdf->AddPage();
$pdf->SetMargins(10, 0, 0, 0);
$pdf->AliasNbPages();
$pdf->SetAutoPageBreak(true, 10);
$pdf->AddFont('Amble-Regular', '', 'Amble-Regular.php');
$pdf->SetFont('Amble-Regular', '', 10);
$pdf->Rect(25, 25, 165, 40, 'D');
////3 INFO TRIBUTARIA
$pdf->SetY(33);
$pdf->SetX(85);
$pdf->multiCell(180, 6, utf8_decode('SERVICIO RENTAS INTERNAS'), 0);
//NOMBRE cliente
$pdf->Text(60, 45, utf8_decode('RUC: '));
//ruc cliente
$pdf->Text(42, 50, utf8_decode('RAZON SOCIAL: '));
//ruc cliente
$pdf->Text(48, 55, utf8_decode('IMPUESTOL: '));
//ruc cliente
$pdf->Text(40, 60, utf8_decode('PERIODO FISCAL: '));
//ruc cliente
$pdf->Rect(25, 65, 165, 10, 'D');
////3 INFO TRIBUTARIA
$pdf->SetY(67);
$pdf->SetX(25);
$pdf->multiCell(130, 6, utf8_decode('CAMPO'), 0);
//NOMBRE cliente
$pdf->Text(70, 71, utf8_decode('DESCRIPCIÓN'));
//ruc cliente
开发者ID:Oskrin,项目名称:neltex_formulario,代码行数:31,代码来源:servicio_rentas_internas.php

示例12: PDF

    // Position von 1.5 cm von unten
    $this->SetY(-19);
}
// Übernahme class
$pdf = new PDF();
$pdf->AliasNbPages();
// Abstände auf der seite setzen
$pdf->SetMargins(4, 2, 4);
// Hinzufügen der 1. Seite
$pdf->AddPage();
// Adressfeld mit Absender und Rechnungsanschrift
$pdf->SetX(0);
$pdf->SetY(58);
$pdf->SetFont('Arial', '', 6);
$pdf->SetTextColor(0);
$pdf->Text(20, 50, SHOPBETREIBER . ' *' . SHOPSTRASSE . ' *' . SHOPSTADT);
$pdf->SetFont('Arial', '', 9);
$pdf->SetTextColor(0);
$pdf->Cell(20);
$pdf->MultiCell(70, 3.3, tep_address_format($order->billing['format_id'], $order->billing, '', '', "\n"), 0, 'L');
// Lieferanschrift
/*
    $pdf->SetFont('Arial','B',8);
$pdf->SetTextColor(0);
$pdf->Text(117,71,ENTRY_SHIP_TO);
$pdf->SetX(0);
$pdf->SetY(74);
    $pdf->Cell(115);
*/
// Barcode
/* if (BARCODE_RECHNUNG == 'ja'){
开发者ID:severnaya99,项目名称:Sg-2010,代码行数:31,代码来源:packingslip_pdf.php

示例13: substr

while ($row = pg_fetch_row($sql)) {
    $cliente = $row[10];
    $ci_ruc = $row[9];
    $direccion = $row[12];
    $telefono = $row[11];
    $fecha = $row[2];
    $nro_fac = substr($row[1], 8);
    $iva0 = $row[3];
    $iva12 = $row[4];
    $iva_venta = $row[5];
    $descuento_venta = $row[6];
    $total_venta = $row[7];
}
/////////header
$pdf->SetFont('Arial', 'B', 10);
$pdf->Text(113, 21, maxCaracter(utf8_decode($nro_fac), 20), 1, 0, 'L', 0);
/////////medio
$pdf->SetFont('Amble-Regular', '', 10);
$pdf->Text(30, 48, maxCaracter(utf8_decode($cliente), 80), 1, 0, 'L', 0);
/////cliente
$pdf->Text(30, 55, maxCaracter(utf8_decode($direccion), 50), 1, 0, 'L', 0);
////direccion
$pdf->Text(113, 55, maxCaracter(utf8_decode($telefono), 20), 1, 0, 'L', 0);
////telefono
$pdf->Text(30, 62, maxCaracter(utf8_decode($ci_ruc), 20), 1, 0, 'L', 0);
////ruc ci
$pdf->Text(113, 62, maxCaracter(utf8_decode($fecha), 20), 1, 0, 'L', 0);
/////fecha
////////detalles
$sql = pg_query("select id_detalle_deventa,id_devolucion_venta,productos.cod_productos,cantidad,precio_venta,descuento_producto,total_venta,articulo from detalle_devolucion_venta,productos where detalle_devolucion_venta.cod_productos=productos.cod_productos and id_devolucion_venta='{$_GET['id']}' and productos.incluye_iva = 'No'");
$yy = 76;
开发者ID:kailIII,项目名称:catalogo,代码行数:31,代码来源:notaCredito.php

示例14: PDF

     // Position von 1.5 cm von unten
     $this->SetY(-19);
 }
 // Übernahme class
 $pdf = new PDF();
 $pdf->AliasNbPages();
 // Abstände auf der seite setzen
 $pdf->SetMargins(4, 2, 4);
 // Hinzufügen der 1. Seite
 $pdf->AddPage();
 // Adressfeld mit Absender und Rechnungsanschrift
 $pdf->SetX(0);
 $pdf->SetY(58);
 $pdf->SetFont('Arial', '', 6);
 $pdf->SetTextColor(0);
 $pdf->Text(20, 50, utf8_decode(SHOPBETREIBER) . ' *' . utf8_decode(SHOPSTRASSE) . ' *' . utf8_decode(SHOPSTADT));
 $pdf->SetFont('Arial', '', 9);
 $pdf->SetTextColor(0);
 $pdf->Cell(20);
 $pdf->MultiCell(70, 3.3, iconv('UTF-8', 'windows-1252', tep_address_format($order->billing['format_id'], $order->billing, '', '', "\n")), 0, 'L');
 // Lieferanschrift
 /*
     $pdf->SetFont('Arial','B',8);
 $pdf->SetTextColor(0);
 $pdf->Text(117,71,ENTRY_SHIP_TO);
 $pdf->SetX(0);
 $pdf->SetY(74);
     $pdf->Cell(115);
 */
 // Barcode
 /* if (BARCODE_RECHNUNG == 'ja'){
开发者ID:tapwag,项目名称:oscommerce_deutsch,代码行数:31,代码来源:packingslip_pdf.php

示例15: elseif

 if (isset($_POST['alumnos']) && isset($_POST['checkbox'])) {
     $pdf->fondoverde($x, $y);
 } elseif ($anyos >= '18' or strstr($row_Recordset1[1], "B-") == TRUE and strlen($row_Recordset1[5]) < "54") {
     $pdf->fondonaranja($x, $y);
     $pdf->uno($x, $y);
 } else {
     $pdf->fondoverde($x, $y);
     $naranja = 0;
 }
 #Hasta aquí el fondo, ahora el texto:
 // CABECERA
 $pdf->Image('./carnet/junta.png', $x + 3, $y + 4, 24);
 $pdf->Image('./carnet/consejeria.png', $x + 57, $y + 4, 24);
 $pdf->SetTextColor(59, 113, 59);
 $pdf->SetFont('Arial', 'B', 7);
 $pdf->Text(33 + $x, 6.1 + $y, $curso);
 $pdf->SetFont('Arial', 'B', 5);
 $pdf->Text(57.2 + $x, 7.7 + $y, $config['centro_denominacion']);
 $pdf->SetTextColor(0, 0, 0);
 $longnie = strlen($claveal);
 $dplz = 0;
 if ($longnie < 7) {
     $dplz = 4;
 }
 $pdf->Rect(2 + $x, 12 + $y, 23, 30, 'F');
 #$pdf->Rect(46+$x,36+$y,33,11,F);
 $fileExtension = ".jpg";
 $foto_al = "../fotos/" . $claveal . ".jpg";
 if (file_exists($foto_al)) {
     $pdf->Image($foto_al, 2.5 + $x, 12.5 + $y, 22);
 }
开发者ID:joadelvia,项目名称:intranet,代码行数:31,代码来源:carnet.php


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