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


PHP PDF::MultiCell方法代码示例

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


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

示例1: pdf_writeLinkedObjects

/**
 *	Show linked objects for PDF generation
 *
 *	@param	PDF			$pdf				Object PDF
 *	@param	object		$object				Object
 *	@param  Translate	$outputlangs		Object lang
 *	@param  int			$posx				X
 *	@param  int			$posy				Y
 *	@param	float		$w					Width of cells. If 0, they extend up to the right margin of the page.
 *	@param	float		$h					Cell minimum height. The cell extends automatically if needed.
 *	@param	int			$align				Align
 *	@param	string		$default_font_size	Font size
 *	@return	float                           The Y PDF position
 */
function pdf_writeLinkedObjects(&$pdf, $object, $outputlangs, $posx, $posy, $w, $h, $align, $default_font_size)
{
    $linkedobjects = pdf_getLinkedObjects($object, $outputlangs);
    if (!empty($linkedobjects)) {
        foreach ($linkedobjects as $linkedobject) {
            $posy += 3;
            $pdf->SetXY($posx, $posy);
            $pdf->SetFont('', '', $default_font_size - 2);
            $pdf->MultiCell($w, $h, $linkedobject["ref_title"] . ' : ' . $linkedobject["ref_value"], '', $align);
            if (!empty($linkedobject["date_title"]) && !empty($linkedobject["date_value"])) {
                $posy += 3;
                $pdf->SetXY($posx, $posy);
                $pdf->MultiCell($w, $h, $linkedobject["date_title"] . ' : ' . $linkedobject["date_value"], '', $align);
            }
        }
    }
    return $pdf->getY();
}
开发者ID:Samara94,项目名称:dolibarr,代码行数:32,代码来源:pdf.lib.php

示例2: generate


//.........这里部分代码省略.........
     $pdf->SetXY(196, 194);
     $pdf->Write(5, $data['collegegraduatedYear']);
     $pdf->SetXY(174.5, 202);
     $pdf->write(5, $data['collegegraduated'] == 'InP' ? 'X' : '');
     $pdf->SetXY(46, 210);
     $pdf->Write(5, $data['othercollege']);
     $pdf->SetXY(46, 222);
     $pdf->Write(5, $data['othercollegeloc']);
     $pdf->SetXY(101, 214);
     $pdf->Write(5, $data['othercollegeyears']);
     $pdf->SetXY(129, 210);
     $pdf->Write(5, $data['othercollegecourse']);
     $pdf->SetXY(174.5, 209);
     $pdf->write(5, $data['othercollegecompleted'] == 'Yes' ? 'X' : '');
     $pdf->SetXY(184, 213);
     $pdf->Write(5, $data['othercollegecompletedMonth']);
     $pdf->SetXY(194, 213);
     $pdf->Write(5, $data['othercollegecompletedYear']);
     $pdf->SetXY(174.5, 219);
     $pdf->write(5, $data['othercollegecompleted'] == 'Pro' ? 'X' : '');
     $pdf->SetXY(128, 260.5);
     $pdf->Write(5, $data['language']);
     $pdf->SetXY(163, 260.5);
     $pdf->write(5, $data['languagespeak'] ? 'X' : '');
     $pdf->SetXY(177, 260.5);
     $pdf->write(5, $data['languageread'] ? 'X' : '');
     $pdf->SetXY(190, 260.5);
     $pdf->write(5, $data['languagewrite'] ? 'X' : '');
     $pdf->AddPage();
     $y = 0;
     $pdf->SetXY(10, $y + 46);
     $pdf->Write(5, $data['companyname1']);
     $pdf->SetXY(10, $y + 55);
     $pdf->MultiCell(50, 10, $data['companyaddress1'], 0, 'L');
     $pdf->SetXY(10, $y + 64);
     $pdf->Write(5, $data['companyphone1']);
     $pdf->SetXY(10, $y + 72);
     $pdf->Write(5, $data['supervisorname1']);
     $pdf->SetXY(60, $y + 52);
     $pdf->MultiCell(80, 35, $data['responsibilities1'], 0, 'L');
     $pdf->SetXY(141, $y + 56);
     $pdf->MultiCell(60, 25, $data['reasonforleaving1'], 0, 'L');
     $pdf->SetXY(160, $y + 64);
     $pdf->write(5, "{$data['startwages1']} -> {$data['endedwages1']}");
     if ($data['maywecontact1'] == 'Yes') {
         $pdf->SetXY(146, $y + 73);
     } else {
         $pdf->SetXY(178, $y + 73);
     }
     $pdf->write(5, 'X');
     $y = 33;
     $pdf->SetXY(10, $y + 46);
     $pdf->Write(5, $data['companyname2']);
     $pdf->SetXY(10, $y + 55);
     $pdf->MultiCell(50, 10, $data['companyaddress2'], 0, 'L');
     $pdf->SetXY(10, $y + 64);
     $pdf->Write(5, $data['companyphone2']);
     $pdf->SetXY(10, $y + 72);
     $pdf->Write(5, $data['supervisorname2']);
     $pdf->SetXY(60, $y + 52);
     $pdf->MultiCell(80, 35, $data['responsibilities2'], 0, 'L');
     $pdf->SetXY(141, $y + 56);
     $pdf->MultiCell(60, 25, $data['reasonforleaving2'], 0, 'L');
     $pdf->SetXY(160, $y + 64);
     $pdf->write(5, "{$data['startwages2']} -> {$data['endedwages2']}");
     if ($data['maywecontact2'] == 'Yes') {
开发者ID:nbunney,项目名称:fulferSite,代码行数:67,代码来源:class.application+copy.php

示例3: conexion

<?php

define('FPDF_FONTPATH', 'font/');
require_once 'mysql_table.php';
include "comunes.php";
require "../sys/conexion.php";
$conn = new conexion();
$pdf = new PDF();
$pdf->Open();
$pdf->AddPage();
//Nombre del Listado
$pdf->SetFillColor(255, 255, 255);
$pdf->SetFont('Arial', 'B', 16);
$pdf->SetY(20);
$pdf->SetX(0);
@$pdf->MultiCell(290, 6, "Lista Precio Netos de Articulos Tienda", 0, C, 0);
$pdf->Ln();
//Restauracion de colores y fuentes
$pdf->SetFillColor(224, 235, 255);
$pdf->SetTextColor(0);
$pdf->SetFont('Arial', 'B', 7);
//Buscamos y listamos las familias
$sel_articulos = "select articulos.*,familias.nombre from articulos,familias where articulos.codfamilia=familias.codfamilia and articulos.borrado=0 order by familias.codfamilia asc, articulos.codarticulo asc";
$rs_articulos = $conn->consulta($sel_articulos);
$contador = 0;
$item = 1;
$valortotal = 0;
$numero_articulos = $conn->num_rows($rs_articulos);
if ($numero_articulos > 0) {
    $pdf->SetFont('Arial', '', 8);
    @$pdf->MultiCell(220, 6, $row["nombre"], 0, L, 0);
开发者ID:rigocastillo,项目名称:TCU,代码行数:31,代码来源:imprimir_articulos_venta.php

示例4: PDF

<?php

define('FPDF_FONTPATH', 'font/');
require_once 'mysql_table.php';
include "comunes.php";
include "../conectar.php";
$pdf = new PDF();
$pdf->Open();
$pdf->AddPage();
//Nombre del Listado
$pdf->SetFillColor(255, 255, 255);
$pdf->SetFont('Arial', 'B', 16);
$pdf->SetY(40);
$pdf->SetX(0);
$pdf->MultiCell(290, 6, "Listado de Cobradores", 0, C, 0);
$pdf->Ln();
//Restauracin de colores y fuentes
$pdf->SetFillColor(224, 235, 255);
$pdf->SetTextColor(0);
$pdf->SetFont('Arial', 'B', 7);
//Buscamos y listamos las familias
$nombreentidad = $_POST["nombrecobrador"];
$codentidad = $_POST["codcobrador"];
$where = "1=1";
if ($codcobrador != "") {
    $where .= " AND codcobrador='{$codcobrador}'";
}
if ($nombrecobrador != "") {
    $where .= " AND nombrecobrador like '%" . $nombrecobrador . "%'";
}
$where2 .= " ORDER BY nombrecobrador ASC";
开发者ID:decimerulo,项目名称:ERP,代码行数:31,代码来源:imprimir_cobradores.php

示例5: appconf

$pdf->SetFont('Arial', '', 10);
//$pdf->Cell (0, 5, 'Simian Systems Inc.', 0, 1, 'R');
$pdf->SetFont('Arial', '', 10);
$pdf->Cell(0, 5, appconf('company_address'), 0, 1, 'R');
$pdf->SetLeftMargin(131.5);
$pdf->WriteHTML('tel: ' . appconf('company_phone') . ', web: <a href="http://' . appconf('company_website') . '/">' . appconf('company_website') . '</a>');
$pdf->SetLeftMargin(15);
$pdf->Ln();
$pdf->Cell(0, 5, ' ', 0, 1, 'C');
$pdf->Ln();
// client info
$client = db_single('select * from siteinvoice_client where id = ?', $cgi->client);
$pdf->SetFont('Arial', 'B', 10);
$pdf->Cell(0, 5, 'Client Information', 0, 1);
$pdf->SetFont('Arial', '', 10);
$pdf->MultiCell(0, 4, $client->name . "\n" . $client->address, 0, 1);
$pdf->Ln();
/*
$pdf->MultiCell (0, 4, 'Note: As per contract signed with 10Digit Communications November, 28th, 2001 for Support Fees for Sitellite' . "\n" . 'Content Management Website Software: http://www.winnipegfreepress2.com/sitellite, http://www.wfpauto.com, and resold licenses.', 0, 1);
$pdf->Ln ();
*/
$pdf->SetFillColor(210, 225, 240);
// table headings (date, item no, description, quantity, price, amount)
$pdf->SetFont('Arial', 'B', 8);
$pdf->Cell(20, 4, 'DATE', 1, 0, 'C', 1);
$pdf->Cell(20, 4, 'ITEM NO.', 1, 0, 'C', 1);
$pdf->Cell(80, 4, 'DESCRIPTION', 1, 0, 'C', 1);
$pdf->Cell(20, 4, 'QUANTITY', 1, 0, 'C', 1);
$pdf->Cell(20, 4, 'PRICE', 1, 0, 'C', 1);
$pdf->Cell(20, 4, 'AMOUNT', 1, 0, 'C', 1);
$pdf->Ln();
开发者ID:vojtajina,项目名称:sitellite,代码行数:31,代码来源:index.php

示例6:

 /**
  *   Affiche la grille des lignes de factures
  *
  *   @param     PDF			$pdf     		Object PDF
  *   @param		int			$tab_top		Tab top
  *   @param		int			$tab_height		Tab height
  *   @param		int			$nexY			next y
  *   @param		Translate	$outputlangs	Output langs
  *   @return	void
  */
 function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $outputlangs)
 {
     global $conf;
     $default_font_size = pdf_getPDFFontSize($outputlangs);
     // Amount in (at tab_top - 1)
     $pdf->SetTextColor(0, 0, 0);
     $pdf->SetFont('', '', $default_font_size - 2);
     $titre = $outputlangs->transnoentities("AmountInCurrency", $outputlangs->transnoentitiesnoconv("Currency" . $conf->currency));
     $pdf->SetXY($this->page_largeur - $this->marge_droite - ($pdf->GetStringWidth($titre) + 4), $tab_top - 4);
     $pdf->MultiCell($pdf->GetStringWidth($titre) + 3, 2, $titre);
     $pdf->SetDrawColor(128, 128, 128);
     // Rect prend une longueur en 3eme param
     $pdf->Rect($this->marge_gauche, $tab_top, $this->page_largeur - $this->marge_gauche - $this->marge_droite, $tab_height);
     // line prend une position y en 3eme param
     $pdf->line($this->marge_gauche, $tab_top + 5, $this->page_largeur - $this->marge_droite, $tab_top + 5);
     $pdf->SetFont('', '', 8);
     // Accountancy piece
     $pdf->SetXY($this->posxpiece - 1, $tab_top + 1);
     $pdf->MultiCell($this->posxdesc - $this->posxpiece - 1, 1, '', '', 'R');
     // Comments
     $pdf->line($this->posxdesc - 1, $tab_top, $this->posxdesc - 1, $tab_top + $tab_height);
     $pdf->SetXY($this->posxdesc - 1, $tab_top + 1);
     $pdf->MultiCell($this->posxdate - $this->posxdesc - 1, 1, $outputlangs->transnoentities("Description"), '', 'L');
     // Date
     $pdf->line($this->posxdate - 1, $tab_top, $this->posxdate - 1, $tab_top + $tab_height);
     $pdf->SetXY($this->posxdate - 1, $tab_top + 1);
     $pdf->MultiCell($this->posxtype - $this->posxdate - 1, 2, $outputlangs->transnoentities("Date"), '', 'C');
     // Type
     $pdf->line($this->posxtype - 1, $tab_top, $this->posxtype - 1, $tab_top + $tab_height);
     $pdf->SetXY($this->posxtype - 1, $tab_top + 1);
     $pdf->MultiCell($this->posxprojet - $this->posxtype - 1, 2, $outputlangs->transnoentities("Type"), '', 'C');
     // Project
     $pdf->line($this->posxprojet - 1, $tab_top, $this->posxprojet - 1, $tab_top + $tab_height);
     $pdf->SetXY($this->posxprojet - 1, $tab_top + 1);
     $pdf->MultiCell($this->posxtva - $this->posxprojet - 1, 2, $outputlangs->transnoentities("Project"), '', 'C');
     // VAT
     if (empty($conf->global->MAIN_GENERATE_DOCUMENTS_WITHOUT_VAT)) {
         $pdf->line($this->posxtva - 1, $tab_top, $this->posxtva - 1, $tab_top + $tab_height);
         $pdf->SetXY($this->posxtva - 1, $tab_top + 1);
         $pdf->MultiCell($this->posxup - $this->posxtva - 1, 2, $outputlangs->transnoentities("VAT"), '', 'C');
     }
     // Unit price
     $pdf->line($this->posxup - 1, $tab_top, $this->posxup - 1, $tab_top + $tab_height);
     $pdf->SetXY($this->posxup - 1, $tab_top + 1);
     $pdf->MultiCell($this->posxqty - $this->posxup - 1, 2, $outputlangs->transnoentities("PriceU"), '', 'C');
     // Quantity
     $pdf->line($this->posxqty - 1, $tab_top, $this->posxqty - 1, $tab_top + $tab_height);
     $pdf->SetXY($this->posxqty - 1, $tab_top + 1);
     $pdf->MultiCell($this->postotalttc - $this->posxqty, 2, $outputlangs->transnoentities("Qty"), '', 'R');
     // Total with all taxes
     $pdf->line($this->postotalttc, $tab_top, $this->postotalttc, $tab_top + $tab_height);
     $pdf->SetXY($this->postotalttc - 1, $tab_top + 1);
     $pdf->MultiCell($this->page_largeur - $this->marge_droite - $this->postotalttc, 2, $outputlangs->transnoentities("TotalTTC"), '', 'R');
     $pdf->SetTextColor(0, 0, 0);
 }
开发者ID:Samara94,项目名称:dolibarr,代码行数:65,代码来源:pdf_standard.modules.php

示例7: terbilang

 $pdf->Cell(25, 4, $_SESSION['lang']['totalPotongan'], 'TB', 0, 'L');
 $pdf->Cell(5, 4, ":Rp.", 'TB', 0, 'L');
 $pdf->Cell(18, 4, number_format($arrMin[$dtKary], 2, '.', ','), 'TB', 1, 'R');
 $pdf->SetFont('Arial', 'B', 7);
 $pdf->Cell(23, 4, $_SESSION['lang']['gajiBersih'], 0, 0, 'L');
 $pdf->Cell(5, 4, ":Rp.", 0, 0, 'L');
 $pdf->Cell(18, 4, number_format($arrPlus[$dtKary] - $arrMin[$dtKary], 2, '.', ','), 0, 0, 'R');
 $pdf->Cell(47, 4, "", 0, 1, 'L');
 $terbilang = $arrPlus[$dtKary] - $arrMin[$dtKary];
 $blng = terbilang($terbilang, 2) . " rupiah";
 $pdf->SetFont('Arial', '', 7);
 $pdf->Cell(23, 4, 'Terbilang', 0, 0, 'L');
 $pdf->Cell(5, 4, ":", 0, 0, 'L');
 //$pdf->MultiCell(58,4,$blng,0,'L');
 $awalY = $pdf->GetY();
 $pdf->MultiCell(58, 4, $blng, 0, 'L');
 $akhirY = $pdf->GetY();
 $tinggiY = $akhirY - $awalY;
 if ($tinggiY <= 5) {
     $pdf->Ln();
 }
 $pdf->SetFont('Arial', 'I', 5);
 $pdf->Cell(96, 4, 'Note: This is computer generated system, signature is not required', 'T', 1, 'L');
 $pdf->SetFont('Arial', '', 6);
 $pdf->Ln();
 if ($pdf->GetY() > 140 and $pdf->col < 1) {
     $pdf->AcceptPageBreak();
 }
 if ($pdf->GetY() > 140 and $pdf->col > 0) {
     //$pdf->lewat=true;
     // $pdf->AcceptPageBreak();
开发者ID:halimc17,项目名称:magsys,代码行数:31,代码来源:sdm_slave_2slipGajiBulananAfd.php

示例8: DATE

$pdf->Ln();
$pdf->Ln();
$pdf->SetFont('Arial', 'B', 10);
$pdf->tabla_4(15, 20, "Fecha", 10, 50, "Reportero/Medio", 25, 45, "Entrevistado", 22, 45, utf8_decode("Tema/Título"), 22);
$pdf->SetFont('Arial', '', 10);
for ($x = 0; $x < count($ids); $x++) {
    $consulta = $conexion->Consultas("SELECT Reportero_Medio, Tema, Fecha FROM Medios WHERE FK_Usuario = " . $ids[$x] . "  AND Fecha BETWEEN DATE('" . $fecha_inicial . "') AND DATE('" . $fecha_final . "')");
    for ($y = 0; $y < count($consulta); $y++) {
        $fecha = explode("-", $consulta[$y]["Fecha"]);
        $pdf->tabla_4(15, 20, $fecha[2] . "/" . $fecha[1] . "/" . $fecha[0], 11, 50, utf8_decode($consulta[$y]["Reportero_Medio"]), 25, 45, $users[$x], 22, 45, utf8_decode($consulta[$y]["Tema"]), 22);
    }
}
$pdf->Ln();
$pdf->Ln();
$pdf->SetFont('Arial', 'B', 12);
$pdf->Cell(15, 5, "", 0, 0, 'L');
$pdf->Cell(0, 5, "LOGROS", 0, 0, 'L');
$pdf->Ln();
$pdf->Ln();
$pdf->SetFont('Arial', '', 12);
$pdf->Cell(15, 5, "", 0, 0, 'L');
$pdf->MultiCell(0, 5, utf8_decode("Favor de reportar los hechos más sobresalientes, logros obtenidos, y cumplimiento de metas durante el semestre que se está reportando."), 0, 'L');
for ($x = 0; $x < count($ids); $x++) {
    $consulta = $conexion->Consultas("SELECT Descripcion FROM Criterio WHERE FK_Usuario = " . $ids[$x] . "  AND Fecha BETWEEN DATE('" . $fecha_inicial . "') AND DATE('" . $fecha_final . "')");
    for ($y = 0; $y < count($consulta); $y++) {
        $pdf->Cell(15, 5, "", 0, 0, 'L');
        $pdf->Cell(0, 5, utf8_decode($consulta[$y]["Descripcion"]), 0, 0, 'L');
        $pdf->Ln();
    }
}
$pdf->Output('Reporte_Institucional.pdf', 'I');
开发者ID:josecabellozavala,项目名称:Selecta,代码行数:31,代码来源:Generar_Institucional.php

示例9: 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;
//ระยะห่าง
##-- PAGE 1
##---- เลขหน้า ----------
$pdf->SetFont('angsana', '', 12);
$pdf->setXY($x_absolute + 160, $y_absolute - 10);
$pdf->MultiCell(0, 0, iconv('UTF-8', 'cp874', 'หน้า  1'));
##---- เลขหน้า ----------
##-- 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', '', 16);
$pdf->MultiCell(0, 0, iconv('UTF-8', 'cp874', 'คลินิคผู้ป่วยนอกโรคลมชัก โรงพยาบาลศรีนครินทร์'));
$pdf->Image('../icon/px.jpeg', 10, 12, 20, 0, '', '');
//Image(string file [, float x [, float y [, float w [, float h [, string type [, mixed link]]]]]])
$pdf->setXY(120, $y_absolute + $r * 2);
$pdf->SetFont('angsana', '', 13);
##-- วันที่ วัน เดือน ปี
if (!empty($b) && !empty($e)) {
开发者ID:jutturong,项目名称:esn2_complete_18-1-59,代码行数:31,代码来源:report_case2.php

示例10: array

$arrStatPPn = array(0 => "Exclude", 1 => "Include");
$pdf->SetFont('Arial', 'B', '10');
$pdf->Cell(39, 5, $_SESSION['lang']['penjual'], '', 0, 'L');
$pdf->Cell(5, 5, ':', '', 0, 'L');
$pdf->SetFont('Arial', '', '10');
$nmdt = explode(".", $nama);
setIt($nmdt[1], '');
$pdf->Cell(100, 5, $nmdt[0] . "." . ucwords(strtolower($nmdt[1])), '', 1, 'L');
$pdf->SetFont('Arial', 'B', '10');
$pdf->Cell(39, 5, '', '', 0, 'L');
$pdf->Cell(5, 5, '', '', 0, 'L');
$pdf->SetFont('Arial', '', '10');
$whrpt = "kodeorg='" . $kodePt . "'";
$almtPt = makeOption($dbname, 'setup_org_npwp', 'kodeorg,alamatdomisili', $whrpt);
$npwpPt = makeOption($dbname, 'setup_org_npwp', 'kodeorg,npwp', $whrpt);
$pdf->MultiCell(130, 5, $almtPt[$kodePt], 0, 'L', 0);
$pdf->SetFont('Arial', 'B', '10');
$pdf->Cell(39, 5, $_SESSION['lang']['npwp'] . " " . $_SESSION['lang']['penjual'], '', 0, 'L');
$pdf->Cell(5, 5, ':', '', 0, 'L');
$pdf->SetFont('Arial', '', '10');
$pdf->Cell(100, 5, $npwpPt[$kodePt], '', 1, 'L');
#data pembeli
$whrpemb = "kodecustomer='" . $kdCust . "'";
$optNm = makeOption($dbname, 'pmn_4customer', 'kodecustomer,namacustomer', $whrpemb);
$optNmAlmt = makeOption($dbname, 'pmn_4customer', 'kodecustomer,alamat', $whrpemb);
$optNpwp = makeOption($dbname, 'pmn_4customer', 'kodecustomer,npwp', $whrpemb);
$pdf->SetFont('Arial', 'B', '10');
$pdf->Cell(39, 5, $_SESSION['lang']['Pembeli'], '', 0, 'L');
$pdf->Cell(5, 5, ':', '', 0, 'L');
$pdf->SetFont('Arial', '', '10');
$nmdt2 = explode(".", $optNm[$kdCust]);
开发者ID:halimc17,项目名称:magsys,代码行数:31,代码来源:pmn_kontakjual_pdf.php

示例11: 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;
//ระยะห่าง
##-- 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)  );
$pdf->SetFont('angsana','b',20);
开发者ID:jutturong,项目名称:report_pdf_thaicleft,代码行数:31,代码来源:report_cleft_update.php

示例12: conexion

<?php

define('FPDF_FONTPATH', 'font/');
require_once 'mysql_table.php';
include "comunes.php";
require "../sys/conexion.php";
$conn = new conexion();
$pdf = new PDF();
$pdf->Open();
$pdf->AddPage();
//Nombre del Listado
$pdf->SetFillColor(255, 255, 255);
$pdf->SetFont('Arial', 'B', 16);
$pdf->SetY(40);
$pdf->SetX(0);
$pdf->MultiCell(290, 6, "Listado de Embalajes", 0, C, 0);
$pdf->Ln();
//Restauracin de colores y fuentes
$pdf->SetFillColor(224, 235, 255);
$pdf->SetTextColor(0);
$pdf->SetFont('Arial', 'B', 7);
//Buscamos y listamos las familias
$codembalaje = $_POST["codembalaje"];
$nombre = $_POST["nombre"];
$where = "1=1";
if ($codembalaje != "") {
    $where .= " AND codembalaje='{$codembalaje}'";
}
if ($nombre != "") {
    $where .= " AND nombre like '%" . $nombre . "%'";
}
开发者ID:rigocastillo,项目名称:TCU,代码行数:31,代码来源:embalajes.php

示例13: PDF

require_once 'declaracao_matricula.inc.php';
require_once '../../../lib/fpdf16/fpdf.php';
class PDF extends FPDF
{
}
$pdf = new PDF();
$pdf->AddPage();
$pdf->SetMargins(20, 20, 20);
$pdf->SetTitle('Declaração de matrícula');
$pdf->SetFont('Times', 'B', 14);
//$pdf->Write(5,'DECLARAÇÃO');
$pdf->Ln(70);
$pdf->Cell(0, 5, 'DECLARAÇÃO', 0, 1, 'C', 0, 0, 0);
$pdf->Ln(15);
$pdf->SetFont('Times', '', 13);
$pdf->MultiCell(0, 5, $corpo, 0, 'J');
$pdf->Ln(10);
$pdf->Cell(0, 5, $data_declaracao, 0, 1, 'J', 0, 0, 0);
$pdf->Ln(15);
$pdf->Cell(44);
$pdf->Cell(70, 5, $carimbo_nome, 0, 1, 'C', 0, 0, 0);
$pdf->SetFont('Times', '', 10);
$pdf->Cell(44);
$pdf->MultiCell(70, 5, $carimbo_dados, 0, 'C');
//$pdf->SetFont('Times','',12);
$pdf->Ln(15);
$pdf->SetFont('Times', '', 9);
$pdf->MultiCell(0, 5, $decretos, 0, 'J');
$pdf->Ln(2);
//$pdf->SetDrawColor(0,0,0);
//$pdf->SetLineWidth(300);
开发者ID:fraancisneiluiz,项目名称:ciaweb,代码行数:31,代码来源:pdf_declaracao_matricula.php

示例14: PDF

		}
	}
	
	//Creación del objeto de la clase heredada
	$pdf=new PDF();
	$pdf->AliasNbPages();
	$pdf->AddPage();
	
	$pdf->Cell(0,10,'No. De Cliente: '.$c->idcliente.'',0,1,'L');
	$pdf->Ln(5);
	$pdf->Cell(0,10,'No. De Venta: '.$_GET[venta].'',0,1,'L');
	
	$pdf->Ln(5);
	
	$pdf->SetFont('Times','',11);	
	$pdf->MultiCell(0,10,'                   Recibí de Paquetería y Mensajería en Movimiento, S.A. de CV. Sucursal '.$f->descripcion.' ('.$c->cantidad.') guías de tipo '.(($c->prepagada=='SI')?'PREPAGADAS':'CONSIGNACION').' '.$c->folios.' a Precio de $'.$c->total.' '.(($c->prepagada=='SI')?'con un precio unitario de 
$ '.$c->precioporguia:'').', un peso máximo de '.$c->limitekg.' Kilos (real o volumen) y $'.$c->preciokgexcedente.' cada kilo excedente que resulte. Importes más IVA.',0,1,'L');
			
	$pdf->SetFont('Times','B',11);
	
	$pdf->Cell(0,10,'Fecha de Vencimiento: '.$c->vigencia.'.',0,1,'R');
	
	$pdf->Cell(0,10,'DATOS FISCALES DE LA EMPRESA:',0,1,'L');
	
	$pdf->SetFont('Times','',10);
	
	$pdf->Cell(0,20,'EMPRESA Y/O RAZÓN: '.$c->cliente.'',0,1,'L');
	
	$pdf->addFirma("".$f->descripcion."",10,170,"Entregó",60);
	
	$pdf->addFirma("".$c->cliente."",110,170,"Recibí",60);
	
开发者ID:sigmadesarrollo,项目名称:logisoft,代码行数:31,代码来源:acuseRecibo_20110211.php

示例15: no

//CRIA UM NOVO ARQUIVO PDF NO TAMANHO A4
$pdf->AliasNbPages();
$pdf->AddPage();
$x = 20;
$l = 6;
//DEFINE A ALTURA DA LINHA
$pdf->SetXY($x, 15);
// SetXY - DEFINE O X (largura) E O Y (altura) NA PÁGINA
$pdf->SetX($x);
$pdf->SetFont('Arial', 'B', 14);
$pdf->Cell(180, 5, utf8_decode("DECLARAÇÃO DE EXCLUSIVIDADE"), 0, 1, 'C');
$pdf->Ln();
$pdf->Ln();
$pdf->SetX($x);
$pdf->SetFont('Arial', '', 11);
$pdf->MultiCell(170, $l, utf8_decode("Nós, abaixo assinados, declaramos, com o fim especial de contratação de Serviços Profissionais de Natureza Artística pela Prefeitura do Município de São Paulo, que somos representados COM EXCLUSIVIDADE pela empresa " . "{$pjRazaoSocial}" . ", CNPJ nº " . "{$pjCNPJ}" . ", com sede em " . "{$pjEndereco}" . ", representada por " . "{$rep01Nome}" . ", RG nº " . "{$rep01RG}" . " e CPF nº " . "{$rep01CPF}" . " e representada por " . "{$rep02Nome}" . ", RG nº " . "{$rep02RG}" . " e CPF nº " . "{$rep02CPF}" . ", para a apresentação " . "{$Objeto}" . ", mediante cachê de R\$ " . "{$ValorGlobal}" . " (" . "{$ValorPorExtenso}" . " )" . " no(s) local(is)" . "{$Local}" . "."));
$pdf->Ln();
$pdf->SetX($x);
$pdf->SetFont('Arial', '', 11);
$pdf->MultiCell(170, $l, utf8_decode("A empresa representante fica autorizada a celebrar contrato, inclusive receber o cachê e outorgar quitação."));
$pdf->Ln();
$pdf->SetX($x);
$pdf->SetFont('Arial', '', 11);
$pdf->MultiCell(170, $l, utf8_decode("Estamos cientes de que o pagamento dos valores decorrentes de nossos serviços é de responsabilidade de nossos representante, não nos cabendo pleitear à Prefeitura do Município de São Paulo quaisquer valores eventualmente não repassados."));
$pdf->Ln();
$pdf->SetX($x);
$pdf->SetFont('Arial', '', 11);
$pdf->MultiCell(170, $l, utf8_decode("Declaramos ainda que não somos servidores públicos vinculados ou lotados na Secretaria Municipal de Cultura ou em qualquer órgão do Executivo ou Legislativo do Município de São Paulo e de que não possuímos impedimento legal para a contratação a ser realizada pela Secretaria Municipal de Cultura da Prefeitura do Município de São Paulo."));
$pdf->Ln();
$pdf->SetX($x);
$pdf->SetFont('Arial', '', 11);
开发者ID:grayce1220,项目名称:igsis,代码行数:31,代码来源:rlt_declaracao_exclusividade_2rep_pj.php


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