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


PHP FPDF::Text方法代码示例

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


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

示例1: pdf

 function pdf()
 {
     $this->load->library('cfpdf');
     $pdf = new FPDF('P', 'mm', 'A4');
     $pdf->AddPage();
     $pdf->SetFont('Arial', 'B', 'L');
     $pdf->SetFontSize(14);
     $pdf->Text(10, 10, 'LAPORAN TRANSAKSI');
     $pdf->SetFont('Arial', 'B', 'L');
     $pdf->SetFontSize(10);
     $pdf->Cell(10, 10, '', '', 1);
     $pdf->Cell(10, 7, 'No', 1, 0);
     $pdf->Cell(27, 7, 'Tanggal', 1, 0);
     $pdf->Cell(30, 7, 'Operator', 1, 0);
     $pdf->Cell(38, 7, 'Total Transaksi', 1, 1);
     // tampilkan dari database
     $pdf->SetFont('Arial', '', 'L');
     $data = $this->model_transaksi->laporan_default();
     $no = 1;
     $total = 0;
     foreach ($data->result() as $r) {
         $pdf->Cell(10, 7, $no, 1, 0);
         $pdf->Cell(27, 7, $r->tanggal_transaksi, 1, 0);
         $pdf->Cell(30, 7, $r->nama_lengkap, 1, 0);
         $pdf->Cell(38, 7, $r->total, 1, 1);
         $no++;
         $total = $total + $r->total;
     }
     // end
     $pdf->Cell(67, 7, 'Total', 1, 0, 'R');
     $pdf->Cell(38, 7, $total, 1, 0);
     $pdf->Output();
 }
开发者ID:astadipati,项目名称:klinik,代码行数:33,代码来源:transaksi.php

示例2: parse_pdf_content

function parse_pdf_content($content, $member_id)
{
    // parse text content from Smarty to pdf content
    global $db, $config, $t;
    $pdf_content = '';
    $margins = array(mm_to_pt(20), mm_to_pt(20), mm_to_pt(20), mm_to_pt(20));
    //left, top, right, bottom (in points) 56pt ~= 20mm
    $font_size = 14;
    //points
    $pdf = new FPDF('P', 'pt', 'A4');
    // portrait, A4
    $pdf->SetCompression(false);
    $pdf->SetMargins($margins[0], $margins[1], $margins[2]);
    //only left, top, right margins. bottom margin equals to 20mm by default.
    $pdf->SetTitle('Your Invoice');
    $pdf->SetSubject('*** Your Payment');
    $pdf->SetAuthor('aMember');
    $pdf->AddPage();
    $pdf->SetFont('Arial', '', $font_size);
    $current_x = $pdf->GetX();
    $current_y = $pdf->GetY();
    $width = mm_to_pt(210);
    $height = mm_to_pt(270);
    $width = $width - $margins[0] - $margins[2];
    // target width
    $height = $height - $margins[1] - $margins[3];
    // target height
    $image = $config['root_dir'] . "/logo.jpg";
    // logo path to include in pdf at top-right corner
    if (is_file($image)) {
        $size = getimagesize($image);
        $x = $width - $size[0] + $margins[0];
        $y = $current_y;
        $pdf->Image($image, $x, $y, $size[0], $size[1]);
        // use original size
        $current_y += $size[1];
    }
    $current_y += $font_size;
    //pt
    $contacts = explode("\n", $config['invoice_contacts']);
    // output contact information right-aligned
    $max_length = 0;
    foreach ($contacts as $row) {
        $row = trim($row);
        $length = $pdf->GetStringWidth($row);
        if ($length > $max_length) {
            $max_length = $length;
        }
    }
    $x = $width - $max_length + $margins[0];
    $y = $current_y;
    foreach ($contacts as $row) {
        $row = trim($row);
        $attr = get_font_styles($row);
        $pdf->SetFont('Arial', $attr, $font_size);
        $pdf->Text($x, $y, strip_tags($row));
        $y += $font_size;
    }
    $current_y = $y;
    $pdf->SetFont('Arial', '', $font_size);
    //return font settings
    // customer contacts
    $u = $db->get_user($member_id);
    if (!$t) {
        $t =& new_smarty();
    }
    $t->assign('u', $u);
    $cust_contacts = $t->fetch('mail_receipt_contact.pdf.txt');
    $cust_contacts = explode("\n", $cust_contacts);
    // output contact information left-aligned
    $num_rows = count($contacts);
    $x = $margins[0];
    $y = $current_y - $font_size * $num_rows;
    // $num_rows rows up from contact information and output customer data
    foreach ($cust_contacts as $row) {
        $row = trim($row);
        $attr = get_font_styles($row);
        $pdf->SetFont('Arial', $attr, $font_size);
        $pdf->Text($x, $y, strip_tags($row));
        $y += $font_size;
    }
    $current_y = $y;
    /*
    $y = $current_y - $font_size * 4; // 4 rows up from contact information and output customer data
    
    $string = $u['name_f'] . ' ' . $u['name_l'];
    $pdf->Text ($x, $y, $string);
    $y += $font_size;
    
    $string = $u['street'];
    $pdf->Text ($x, $y, $string);
    $y += $font_size;
    
    $string = $u['zip'] . ' ' . $u['city'];
    $pdf->Text ($x, $y, $string);
    $y += $font_size;
    
    	$state = db_getStateByCode($u['country'], $u['state']);
    	$country = db_getCountryByCode($u['country']);
    $string = $state .  ' '  . $country;
//.........这里部分代码省略.........
开发者ID:subashemphasize,项目名称:test_site,代码行数:101,代码来源:common.inc.php

示例3: Text

 function Text($x, $y, $txt)
 {
     $txt = utf8_decode($txt);
     return parent::Text($x, $y, $txt);
 }
开发者ID:vih,项目名称:vih.dk,代码行数:5,代码来源:Fpdf.php

示例4: FPDF

<?php 
require 'libs/fpdf/fpdf.php';
$pdf = new FPDF();
$pdf->AddPage();
$pdf->SetFont('Arial', 'B', 18);
if (!$Transactions) {
    echo '<h3 class="text-center success"><strong>There are no transactions done in this time period.</strong></h3>';
    return 0;
} else {
    //formatting pdf
    $pdf->Image('views/img/ioc.png', 95, 1, 20);
    $pdf->MultiCell(10, 20, "");
    $pdf->Text(35, 28, 'Regular Customer Transactions Monthly Report');
    //table data
    $pdf->SetFont('Arial', 'B', 8);
    date_default_timezone_set('Asia/Colombo');
    //to get srilankan time instead of GMT time
    $date = date("l jS \\of F Y h:i:s A");
    $pdf->Text(5, 5, ' Date: ' . $date);
    $heading = array("Customer", "VehicleNO", "Amount Rs.", "OrderDate", "ReturnedDate");
    $pdf->Cell(20, 20, '', 0, 0, 'C');
    foreach ($heading as $column_heading) {
        $pdf->Cell(30, 20, $column_heading, 1, 0, 'C');
    }
    $pdf->SetMargins(30, 0);
    foreach ($Transactions as $row) {
        $pdf->SetFont('Arial', '', 8);
        $pdf->Ln();
        foreach ($row as $column) {
            $pdf->Cell(30, 10, $column, 1, 0, 'C');
开发者ID:ROCKY-SAM,项目名称:IOC,代码行数:30,代码来源:RegHistory.php

示例5: FPDF

$getTA = mysql_fetch_array(mysql_query("select ta from tahunajaran where id_ta='{$id_ta}'"));
$getSmt = $getSemester['semester'];
$hasilnya = mysql_query("SELECT a.id_ta ,b.nis, b.nama_siswa, m.mapel, a.nilai, t.semester, m.kd_mapel, d.kelas, t.ta\n\t  FROM nilai_mapel a\n\t  JOIN siswa b ON b.nis = a.nis\n\t  JOIN anggota_kelas ak ON ak.nis= a.nis\n\t  JOIN mapel m ON a.kd_mapel = m.kd_mapel\n\t  JOIN tahunajaran t ON ak.id_ta=t.id_ta\n\t  JOIN kelas d ON ak.kd_kelas = d.kd_kelas\n\t  WHERE b.nis='{$nnis}' AND a.id_ta='{$_GET['ta']}' AND t.semester='{$getSmt}' AND t.ta='{$getTA['ta']}'");
$hasilnya2 = mysql_query("SELECT m.kd_mapel,  m.mapel, d.kelas, a.nilai\n\t  FROM nilai_mapel a\n\t  JOIN siswa b ON b.nis = a.nis\n\t  JOIN anggota_kelas ak ON ak.nis= a.nis\n\t  JOIN mapel m ON a.kd_mapel = m.kd_mapel\n\t  JOIN tahunajaran t ON ak.id_ta=t.id_ta\n\t  JOIN kelas d ON ak.kd_kelas = d.kd_kelas\n\t  WHERE b.nis='{$nnis}' AND a.id_ta='{$_GET['ta']}' AND t.semester='{$getSmt}' AND t.ta='{$getTA['ta']}'");
$tampilHasil = mysql_fetch_array($hasilnya);
// list ($nama_siswa, $nis, $ta, $semester,$kd_mapel, $mapel, $kelas, $nilai)
//medifinisikan variable class fpdf dan page pdf
$pdf = new FPDF('P', 'mm', 'A4');
$pdf->AddPage();
//medifinisikan set margin
$pdf->SetMargins(40, 10, 6);
$pdf->Image('images/icon/kop.png', 12, 3, 0, 28);
$pdf->SetFont('Arial', 'B', 10);
//fungsi mengatur text area font
$pdf->SetFont('Arial', 'B', 8);
$pdf->Text(140, 50, "Tahun Ajaran");
$pdf->Text(165, 50, " : " . $tampilHasil['ta']);
$pdf->Text(15, 50, "NIS");
$pdf->Text(40, 50, " : " . $tampilHasil['nis']);
$pdf->Text(15, 55, "Nama Siswa");
$pdf->Text(40, 55, " : " . $tampilHasil['nama_siswa']);
$pdf->Text(140, 55, "Semester");
$pdf->Text(165, 55, " : " . $tampilHasil['semester']);
//fungsi mengatur dan posisi table x dan y
$pdf->SetXY(15, 60);
$pdf->AliasNbPages();
// function untuk menampilkan tabel
//membuat header tabel set color
$pdf->SetFillColor(50, 50, 50);
$pdf->SetTextColor(255, 255, 255);
$pdf->Cell(10, 5, "No.", 1, 0, 'C', true);
开发者ID:razordice,项目名称:siakad,代码行数:31,代码来源:exportnilai_siswa.php

示例6: FPDF

<?php

session_start();
include '../librerias/fpdf/fpdf.php';
include '../../resources/orcl_conex.php';
include 'Models/class.Denuncia.php';
include 'Models/class.DenunciaDAO.php';
include '../mod_ciudadanos/Models/class_fisc_ciudadano.php';
include '../mod_ciudadanos/Models/class_fisc_ciudadanoDAO.php';
$pdf = new FPDF('P');
$pdf->AddPage();
$pdf->Image('../../public_html/imagenes/logoclaro.png', 40, 50, 120);
$pdf->SetTitle("Notificación al denunciante", true);
$pdf->Image('../../public_html/imagenes/logoivss.png', 20, 7, 13);
$pdf->SetFont('Arial', '', 6);
$pdf->Text(40, 10, utf8_decode('REPÚBLICA BOLIVARIANA DE VENEZUELA'));
$pdf->Text(40, 13, utf8_decode('MINISTERIO DEL PODER POPULAR PARA EL TRABAJO Y SEGURIDAD SOCIAL'));
$pdf->Text(40, 16, utf8_decode('INSTITUTO VENEZOLANO DE LOS SEGUROS SOCIALES'));
$pdf->Text(40, 19, utf8_decode('DIRECCIÓN GENERAL DE FISCALIZACIÓN'));
$pdf->SetXY(20, 26);
$pdf->SetFillColor(35, 65, 129);
$pdf->SetFont('Arial', 'B', 8);
$pdf->setTextColor(255, 255, 255);
$pdf->Cell(50, 6, utf8_decode('N° DE QUEJAS Y/O RECLAMOS'), 1, 0, 'C', TRUE);
$pdf->SetXY(20, 32);
$pdf->Cell(50, 6, '', 1, 0, 'C', FALSE);
$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);
开发者ID:vanckruz,项目名称:draftReports,代码行数:31,代码来源:comprobante_recepcion_queja.php

示例7: FPDF

$pdf = new FPDF ( 'P', 'mm', 'A4' );
$pdf->SetMargins ( 1, 1, 1 );
$pdf->Open ();

$pdf->AddPage ();

$pdf->Image ( "imagenes/formato.jpg", 1, 1, 202 );

$pdf->SetFillColor ( 255, 255, 255 );
$pdf->SetTextColor ( 0 );
$pdf->SetDrawColor ( 0, 0, 0 );
$pdf->SetLineWidth ( .2 );
$pdf->SetFont ( 'Arial', 'B', 9 );

$pdf->Text ( 30, 43, $ren ["rfc"] );
$pdf->Text ( 88, 43, $ren ["curp"] );
$pdf->Text ( 174, 41, campo ( $ren ["folio"], 10, 2 ) );

$pdf->SetFont ( 'Arial', 'B', 8 );

$sql = "select upp as cveupp, razonsocial as upp, titular from empresa limit 1";
$res_emp = mysqli_query ( $conexion, $sql );
$ren_emp = mysqli_fetch_array ( $res_emp );

$titularupp = $ren_emp ["titular"];

$pdf->Text ( 17, 56, $ren_emp ["upp"] );
mysql_free_result ( $res_emp );

$pdf->Text ( 17, 63.5, $ren ["area"] );
开发者ID:acronoxine,项目名称:movimientosSFA_V1,代码行数:30,代码来源:pdfmovimiento.php

示例8: FPDF

# $crdate=$rs[8];
# $crdts=$rs[9];
# $hosteller=$rs[10];
# $hosteldues=$rs[11];
# $scst=$rs[12];
# $presentad=$rs[13];
# $phonepresent=$rs[14];
# $permad=$rs[15];
# $phoneparent=$rs[16];
# $conn = mysql_close($conn);
$pdf = new FPDF();
$pdf->AddPage();
$pdf->SetFont('Arial', 'B', 16);
$pdf->SetTitle("Model Engineering College - Semester Registration");
$pdf->SetFont('Arial', '', 12);
$pdf->Text(70, 15, ' Model Engineering College');
$pdf->SetFont('Arial', '', 10);
#$pdf->Text(75,15,'Cochin, Kerala, India, Pin: 682 021');
#$pdf->SetFont('Arial','',10);
#$pdf->Text(65,20,'Request for Transfer Certificate / Course & Conduct Certificate');
###$pdf->Rect(10,10,35,10);
$pdf->SetFont('Arial', 'U', 10);
$pdf->Text(55, 25, 'Request for Transfer Certificate / Course & Conduct Certificate');
$pdf->SetFont('Arial', '', 10);
$row = 40;
$col = 25;
$pdf->Text($col, $row, 'From ');
$pdf->Text($col + 5, $row += 5, $name);
$pdf->Text($col + 5, $row += 5, $admno . ', ' . $branch);
$pdf->Text($col + 5, $row += 5, $course);
$pdf->Text($col, $row += 10, 'To');
开发者ID:tittyjacob,项目名称:office,代码行数:31,代码来源:pdf.php

示例9: FPDF

<?php

session_start();
define('FPDF_FONTPATH', '../pdf/font/');
require '../pdf/fpdf.php';
include '../funct.php';
$pdf = new FPDF();
$pdf->AddFont('Calligrapher', '', 'arial_ce.php');
$pdf->AddPage();
$pdf->Image('../img/logo.png', 165, 8, 33);
$pdf->SetFont('Calligrapher', '', 9);
$pdf->Text(10, 10, iconv('UTF-8', 'windows-1250//TRANSLIT', "NIEPUBLICZNY ZAKŁAD OPIEKI ZDROWOTNEJ"));
$pdf->Text(30, 13, "DARMEDICUS");
$pdf->SetFont('Calligrapher', '', 8);
$pdf->Text(18, 16, "04-364 Warszawa, ul. Wiatraczna 15 lok - U1");
$pdf->Text(29, 19, "tel/fax (22) 465 17 91");
$pdf->SetFont('Calligrapher', '', 14);
$pdf->Ln(15);
$pdf->MultiCell(0, 10, 'Grafik lekarzy w dniu ' . $_SESSION['data'], 0, "C");
$sql = "select wizyty.id_gab, sl_gab.nazwa from wizyty, sl_gab where wizyty.id_gab = sl_gab.id and wizyty.data like '" . date("Y-m-d", strtotime($_SESSION['data'])) . "%' ";
$result = mysql_query($sql);
$ile_gab = mysql_num_rows($result);
while ($row = mysql_fetch_array($result)) {
    $lista_gab[$row[0]] = $row[1];
}
if ($lista_gab == '') {
    $pdf->Ln(5);
    $pdf->MultiCell(0, 10, iconv('UTF-8', 'windows-1250//TRANSLIT', 'Brak lekarzy przyjmujących w danym dniu'));
} else {
    $nr_l = 1;
    $pdf->SetFont('Calligrapher', '', 8);
开发者ID:wycus,项目名称:darmedic,代码行数:31,代码来源:wydr_grafik_wszyscy.php

示例10: FPDF

<?php 
require 'libs/fpdf/fpdf.php';
$pdf = new FPDF();
$pdf->AddPage();
$pdf->SetFont('Arial', 'B', 18);
if (!$modelStocks) {
    echo '<h3 class="text-center success"><strong>Bump , no records found !</strong></h3>';
    return 0;
} else {
    $pdf->Image('views/img/ioc.png', 95, 1, 20);
    $pdf->MultiCell(20, 20, "");
    $pdf->Text(75, 28, 'Pump readings report');
    //table data
    $pdf->SetFont('Arial', 'B', 8);
    date_default_timezone_set('Asia/Colombo');
    //to get srilankan time instead of GMT time
    $date = date("l jS \\of F Y h:i:s A");
    $pdf->Text(5, 5, ' Date: ' . $date);
    $heading = array("Date", "Reading", "Pump no");
    $pdf->Cell(30, 20, '', 0, 0, 'C');
    foreach ($heading as $column_heading) {
        $pdf->Cell(40, 20, $column_heading, 1, 0, 'C');
    }
    $pdf->SetMargins(40, 0);
    foreach ($modelStocks as $row) {
        $pdf->SetFont('Arial', '', 8);
        $pdf->Ln();
        foreach ($row as $column) {
            $pdf->Cell(40, 10, $column, 1, 0, 'C');
        }
开发者ID:ROCKY-SAM,项目名称:IOC,代码行数:30,代码来源:pumpReportSpec.php

示例11: createQRbyRestoID

    public function createQRbyRestoID()
    {
        $id_restaurant = $_GET['id_restaurant'];
        $quantityQR = $_GET['quantityQR'];
        $id_request = $_GET['id_request'];
        $objResto = new MasterRestaurantModel();
        $objResto->getByID($id_restaurant);
        $objResto->table_quantity = $objResto->table_quantity + $quantityQR;
        $objResto->load = 1;
        $objResto->save();
        //        pr($objResto);
        $objQRRequest = new QRRequestModel();
        $objQRRequest->getByID($id_request);
        $objQRRequest->createdOn = leap_mysqldate();
        //        pr($objQRRequest);
        $objQRRequest->status = "1";
        $objQRRequest->load = 1;
        $objQRRequest->save();
        $objQR = new QRModel();
        global $db;
        $qtydiDB = "SELECT max(id_qr) as max from menurevo__QR";
        $arr = $db->query($qtydiDB, 1);
        for ($i = $arr->max + 1; $i <= $quantityQR + $arr->max; $i++) {
            $encode = addslashes(base64_encode($i));
            $q = "INSERT INTO menurevo__QR (id_qr, textQR,status) VALUES({$i},'{$encode}',0)";
            $id = $db->query($q, 1);
        }
        $pdf = new FPDF();
        $myarray = array(1, 2, 3);
        $pdf->SetFont('Arial', 'B', 16);
        for ($i = $arr->max + 1; $i <= $quantityQR + $arr->max; $i++) {
            $pdf->AddPage();
            $pdf->Image("https://chart.googleapis.com/chart?chs=150x150&cht=qr&chld=L|0&chl=" . base64_encode($i), 60, 30, 90, 0, 'PNG');
            $pdf->Text(85, 130, "Menu Revolution");
        }
        $pdf->Output();
        ?>


        <html>
            <head>
                <title>Print QR-Code</title>
                <style>
                    body{ margin: 0; padding: 0; font-family: verdana;}
                </style>
            </head>
            <body>
        <?php 
        for ($i = $arr->max + 1; $i <= $quantityQR + $arr->max; $i++) {
            ?>
                    <!--                    <div style="width:800px; border-bottom: 3px dashed #aaaaaa; margin-bottom: 20px;">
                                            <img src="<?php 
            echo _SPPATH;
            ?>
images/headerleap.jpg"  width="100%">-->

                    <div style="padding:40px; text-align: center;">
                        <!--<div style="letter-spacing: 2px; font-size: 18px; font-weight: bold; padding-bottom: 20px;"> <?php 
            echo $mur->admin_nama_depan;
            ?>
</div>-->
                        <img src="<?php 
            echo "https://chart.googleapis.com/chart?chs=150x150&cht=qr&chld=L|0&chl=" . base64_encode($i);
            ?>
"alt="QR">

                    </div>

                    <!--</div>--> 

            <?php 
        }
        ?>
 </body>

        </html><?php 
        die('finished');
    }
开发者ID:CapsuleCorpIndonesia,项目名称:martabak_revolution,代码行数:78,代码来源:QRRequest.php

示例12: FPDF

<?php

require '../fpdf/fpdf.php';
$pdf = new FPDF();
$pdf->AddPage();
$pdf->SetFont("Arial", "B", 14);
$pdf->Cell(0, 0, "File name :  main.cpp", 0, 0, C);
$pdf->Text(10, 30, "File weight : 161 B");
$pdf->Text(10, 40, "using namespace std;");
$pdf->SetTextColor(130, 0, 0);
$pdf->Text(10 + 20, 50, "0 - Function : int main (void)");
$pdf->SetTextColor(0);
$pdf->Text(10, 60, "Return Type : int ");
$pdf->Text(10, 70, "Argument Type & Name : (void)");
$pdf->SetTextColor(130, 0, 0);
$pdf->Text(10 + 20, 80, "1 - Function : float lol (int a, int b)");
$pdf->SetTextColor(0);
$pdf->Text(10, 90, "Return Type : float");
$pdf->Text(10, 100, "Argument Type & Name : (int a, int b)");
$pdf->Text(10, 110, "Line Count : 15");
$pdf->Text(10, 120, "Number of Function : 2");
$pdf->Text(10, 260, "Fin de Page");
$pdf->AddPage();
$pdf->Text(10, 260, "Fin de Page");
$pdf->Output();
开发者ID:oumartraore,项目名称:LogicDocGen,代码行数:25,代码来源:render.php

示例13: FPDF

 // neues PDF-Dokument erzeugen
 $pdf = new FPDF('P', 'mm', 'A4');
 // Seitenabstand definieren
 $pdf->SetMargins(25, 15, 15);
 // Automatischen Seitenumbruch deaktivieren
 $pdf->SetAutoPageBreak(false);
 // ******************************************************* SEITE 1 ******************************************************* //
 // erste Seite hinzufügen
 $pdf->AddPage();
 // Logo einfügen
 $pdf->Image('./img/acb_logo_neublau_klein.jpg', 165, 10, 30);
 // Schriftart festlegen
 $pdf->SetFont('Arial', 'B', 16);
 // Schriftfarbe festlegen
 $pdf->SetTextColor(5, 3, 252);
 $pdf->Text(30, 15, utf8_decode('A E R O - C L U B   B U T Z B A C H   E. V.'));
 // Schriftart festlegen
 $pdf->SetFont('Arial', 'B', 9);
 $pdf->Text(40, 20, utf8_decode('Ringstraße 4  -  35647 Waldsolms  -  Telefon 06085-987330'));
 $pdf->Text(55, 24, utf8_decode('eMail: vorstand@aero-club-butzbach.de'));
 // Schriftart festlegen
 $pdf->SetFont('Arial', 'BU', 14);
 // Schriftfarbe festlegen
 $pdf->SetTextColor(0, 0, 0);
 $pdf->Text(20, 38, utf8_decode('Personen-Datenblatt'));
 // Schriftart festlegen
 $pdf->SetFont('Arial', '', 10);
 $pdf->Text(20, 46.5, '01');
 // neue XY-Position bestimmen
 $pdf->SetXY(30, 43);
 // neuer Zugang
开发者ID:angstmann82,项目名称:flybook,代码行数:31,代码来源:pdf_mitglied.php

示例14: FPDF

<?php 
require 'libs/fpdf/fpdf.php';
$pdf = new FPDF();
$pdf->AddPage();
$pdf->SetFont('Arial', 'B', 18);
if (!$modelStocks) {
    echo '<h3 class="text-center success"><strong>Bump , no records found !</strong></h3>';
    return 0;
} else {
    $pdf->Image('views/img/ioc.png', 95, 1, 20);
    $pdf->MultiCell(20, 20, "");
    $pdf->Text(50, 28, 'Monthly Emergency transport report');
    //table data
    $pdf->SetFont('Arial', 'B', 8);
    date_default_timezone_set('Asia/Colombo');
    //to get srilankan time instead of GMT time
    $date = date("l jS \\of F Y h:i:s A");
    $pdf->Text(5, 5, ' Date: ' . $date);
    $heading = array("Record id", "Fullname", "NIC", "Vehicleno", "Contact", "Description", "Email", "Date");
    $pdf->Cell(25, 20, '', 0, 0, 'C');
    foreach ($heading as $column_heading) {
        $pdf->Cell(25, 20, $column_heading, 1, 0, 'C');
    }
    $pdf->SetMargins(10, 0);
    foreach ($modelStocks as $row) {
        $pdf->SetFont('Arial', '', 8);
        $pdf->Ln();
        foreach ($row as $column) {
            $pdf->Cell(25, 10, $column, 1, 0, 'C');
        }
开发者ID:ROCKY-SAM,项目名称:IOC,代码行数:30,代码来源:emgReportX.php

示例15: dirname

 //EGO ================================================================
 $pdf->AddPage('P', 'A4');
 //A4 EGO PAGE
 $searchpath = dirname(dirname(dirname(__FILE__)));
 //."/input";
 //SET BAGROUNT PNG-----------------------------
 $pdf->Image($searchpath . "/version4/exporter/EP_BCK_PDF_EGO.png", 0, 0, -150);
 //DEFINE FONTS ---------------------------------
 $pdf->AddFont('Lato-Lig', '', 'Lato-Lig.php');
 $pdf->AddFont('Lato-LigIta', '', 'Lato-LigIta.php');
 $pdf->AddFont('Lato-Reg', '', 'Lato-Reg.php');
 $pdf->SetFont('Lato-Lig', '', 10);
 //BEGIN FILLING SHEET------------------------------
 $character = $_SESSION['cc']->character;
 //NAMES
 $pdf->Text(60, 12, $character->charName);
 //Character Name
 $pdf->Text(143, 12, $character->playerName);
 //Player Name
 //ORIGINES
 $pdf->Text(37, 26, formatIt($_SESSION['cc']->getCurrentBackground()->name));
 //Background
 $pdf->Text(37, 33, formatIt($_SESSION['cc']->getCurrentFaction()->name));
 //Faction
 $pdf->SetFont('Lato-LigIta', '', 7);
 setBookLink($_SESSION['cc']->getCurrentBackground()->name, 85, 27, $p, $pdf);
 //Background bookLink
 setBookLink($_SESSION['cc']->getCurrentFaction()->name, 85, 34, $p, $pdf);
 //Faction bookLink
 $pdf->SetFont('Lato-Lig', '', 10);
 //AGE - SEX
开发者ID:dhMuse,项目名称:ep-character-creator,代码行数:31,代码来源:pdfExporterV2_fpdf.php


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