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


PHP FPDF::image方法代码示例

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


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

示例1:

$fakulteti = $_POST['txt_edu_faculty'];
$specialoba = $_POST['txt_edu_profession'];
$xarisxi = $_POST['txt_edu_degree'];
$periodii = $_POST['txt_edu_period'];
$enebi = $_POST['txt_lang_name'];
$skills = $_POST['txt_skill_name'];
$organizacia = $_POST['txt_work_name'];
$pozicia = $_POST['txt_work_position'];
$periodi = $_POST['txt_work_period'];
$pdf->AddPage();
$pdf->SetFont('Arial', 'B', 15);
$pdf->Cell(0, 10, 'CV', 1, 1, 'C');
$pdf->Ln();
$pdf->SetFont('Arial', '', 12);
//$pdf->Cell(50,7,'Image:',1,"R");
$pdf->image($target_file, null, null, 50, 55);
$pdf->Ln();
if ($_POST['saxeli'] != '') {
    $pdf->Cell(50, 7, 'Name:', 1, "R");
    $pdf->Cell(140, 7, $_POST['saxeli'], 1);
}
$pdf->Ln();
if ($_POST['gvari'] != '') {
    $pdf->Cell(50, 7, 'Surname:', 1, "R");
    $pdf->Cell(140, 7, $_POST['gvari'], 1);
}
$pdf->Ln();
if ($_POST['dabadeba'] != '') {
    $pdf->Cell(50, 7, 'Date of birthday:', 1, "R");
    $pdf->Cell(140, 7, $_POST['dabadeba'], 1);
}
开发者ID:anri-1151,项目名称:CV-Maker,代码行数:31,代码来源:design1_pdf_creator.php

示例2: die

<?php

require_once "lib/ebpls.utils.php";
define('FPDF_FONTPATH', 'font/');
require 'ebpls-php-lib/html2pdf_lib/fpdf.php';
include "lib/phpFunctions-inc.php";
$dbLink = get_db_connection();
$result = mysql_query("select lgumunicipality, lguprovince, lguoffice from ebpls_buss_preference") or die(mysql_error());
$resulta = mysql_fetch_row($result);
$pdf = new FPDF('L', 'mm', 'Legal');
$pdf->AddPage();
$pdf->image('peoplesmall.jpg', 10, 5, 33);
$pdf->SetFont('Arial', 'B', 12);
$pdf->Cell(340, 5, 'REPUBLIC OF THE PHILIPPINES', 0, 1, 'C');
$pdf->Cell(340, 5, $resulta[0], 0, 1, 'C');
$pdf->Cell(340, 5, $resulta[1], 0, 2, 'C');
$pdf->SetFont('Arial', 'B', 14);
$pdf->Cell(340, 5, $resulta[2], 0, 2, 'C');
$pdf->Cell(340, 5, '', 0, 2, 'C');
$pdf->SetFont('Arial', 'BU', 16);
$pdf->Cell(340, 5, 'REGISTRY OF MOTOR VEHICLES', 0, 1, 'C');
/*			$result=mysql_query("select a.business_permit_code, concat(c.owner_first_name, ' ', c.owner_middle_name, ' ', c.owner_last_name),
	        b.business_name, e.bus_nature, b.business_street, e.cap_inv, e.last_yr, d.total_amount_paid, d.or_no, 
	        d.or_date, b.business_category_code
					from ebpls_business_enterprise_permit a, ebpls_business_enterprise b, ebpls_owner c, ebpls_transaction_payment_or d, 
					tempbusnature e
					where a.owner_id = b.owner_id and a.owner_id = c.owner_id and b.owner_id = d.trans_id and b.business_id = e.business_id") 
					or die(mysql_error());
					
					$number_of_rows = mysql_numrows($result);
          while ($resulta=mysql_fetch_row($result))
开发者ID:laiello,项目名称:ebpls,代码行数:31,代码来源:pdf-motor-permit.php

示例3: array

$instrucoes7 = "                 de ISSQN e DIVIDA ATIVA.";
$desconto_abatimento = "";
$outras_deducoes = "";
$mora_multa = "";
$outros_acrecimos = "";
$valor_cobrado = "";
$sacado1 = $z01_nome;
$sacado2 = $z01_ender;
$sacado3 = $z01_munic;
$matri = array("1" => "janeiro", "2" => "Fevereiro", "3" => "Março", "4" => "Abril", "5" => "Maio", "6" => "Junho", "7" => "Julho", "8" => "Agosto", "9" => "Setembro", "10" => "Outubro", "11" => "Novembro", "12" => "Dezembro");
$mesx = $matri[$q20_mes];
$pdf = new FPDF();
$pdf->Open();
$pdf->AliasNbPages();
$pdf->AddPage();
$pdf->image('imagens/files/logo_boleto.png', 10, 2, 17);
$pdf->setfont('arial', 'B', 10);
$coluna = 30;
$pdf->text($coluna, 5, $nomeinst);
$pdf->setfont('arial', '', 8);
$pdf->text($coluna, 9, $ender);
$pdf->text($coluna, 12, $munic . ' - ' . $uf);
$pdf->text($coluna, 15, $telef);
$pdf->text($coluna, 18, $email);
$pdf->text($coluna, 21, $url);
$clquery->sql_query("cgm", "z01_nome", "", "z01_numcgm= {$q20_numcgm}");
$clquery->sql_record($clquery->sql);
db_fieldsmemory($clquery->result, 0);
$pdf->sety(25);
$pdf->setfont('arial', 'B', 10);
$pdf->multicell(0, 4, 'ISSQN COM RETENÇÃO NA FONTE', 0, "C", 0);
开发者ID:arendasistemasintegrados,项目名称:mateusleme,代码行数:31,代码来源:recibopdf_old.php

示例4: die

$base = mysql_connect($host, $user, $password);
mysql_select_db($bdd) or die("Impossible de se connecter a la base de donnees {$bdd}");
$id = $_GET['id'];
$pdf = new FPDF('L', 'mm', array(90, 55));
// Creation de la page pdf
$pdf->AddPage();
$pdf->SetFillColor(100, 149, 237);
// Requete d'affichage des datas du contact
$sql = "SELECT * FROM contacts where id =" . $id;
$envoi_requete = mysql_query($sql);
$pdf->SetFont('arial', '', 9);
if ($resultats = mysql_fetch_assoc($envoi_requete)) {
    $pdf->SetAutoPageBreak(false);
    // Affichage photo
    $pdf->SetLeftMargin(10);
    $pdf->image($resultats['photo'], null, null, 20);
    // Affichage nom du contact
    $pdf->SetFont('Arial', "B");
    $pdf->SetTextColor(100, 149, 237);
    $pdf->SetLeftMargin(50);
    $pdf->SetY(-45);
    $pdf->Cell(40, 6, $resultats['nom_prenom']);
    $pdf->Ln();
    // Affichage téléphone
    $pdf->SetFont('Arial', "");
    $pdf->SetTextColor('0', '0', '0');
    $telephone = str_split($resultats['telephone'], 2);
    $num_tel = "";
    for ($x = 0; $x < count($telephone); $x++) {
        if ($x > 0 && $x < count($telephone)) {
            $num_tel .= "." . $telephone[$x];
开发者ID:benji007,项目名称:NAO,代码行数:31,代码来源:creationPdf.php

示例5: Open

require '../ebpls-php-lib/html2pdf_lib/fpdf.php';
include "../lib/phpFunctions-inc.php";
include "../includes/variables.php";
include "../lib/multidbconnection.php";
$dbLink = Open($dbtype, $connecttype, $dbhost, $dbuser, $dbpass, $dbname);
$e = strrpos($owner_last, "-");
//$owner_last is date
$l = strlen($owner_last);
$dateprev = substr($owner_last, 0, 4);
$dateprev = $dateprev;
$datenext = $dateprev + 1;
$result = mysql_query("select lgumunicipality, lguprovince, lguoffice from ebpls_buss_preference") or die(mysql_error());
$resulta = mysql_fetch_row($result);
$pdf = new FPDF('L', 'mm', 'Legal');
$pdf->AddPage();
$pdf->image('../images/ebpls_logo.jpg', 10, 5, 33);
$pdf->SetFont('Arial', 'B', 12);
$pdf->Cell(340, 5, 'REPUBLIC OF THE PHILIPPINES', 0, 1, 'C');
$pdf->Cell(340, 5, $resulta[0], 0, 1, 'C');
$pdf->Cell(340, 5, $resulta[1], 0, 2, 'C');
$pdf->SetFont('Arial', 'B', 14);
$pdf->Cell(340, 5, $resulta[2], 0, 2, 'C');
$pdf->Cell(340, 5, '', 0, 2, 'C');
$pdf->SetFont('Arial', 'BU', 16);
$pdf->Cell(340, 5, 'BUSINESS TAX COLLECTION QUARTERLY', 0, 1, 'C');
$pdf->SetLineWidth(2);
$pdf->Line(0, 45, 360, 45);
$pdf->SetLineWidth(0);
$pdf->Cell(270, 5, '', 0, 1, 'C');
$pdf->Cell(270, 5, '', 0, 1, 'C');
$Y_Label_position = 50;
开发者ID:laiello,项目名称:ebpls,代码行数:31,代码来源:ebpls_bus_taxcoll_quar.php

示例6: stripslashes

<?php

require 'functions/fpdf.php';
$id = $_POST['id'];
$group = stripslashes(strtoupper($_POST['group']));
$cause = stripslashes($_POST['cause']);
$pdf = new FPDF('p', 'pt', 'letter');
$pdf->SetMargins(50, 50, 50);
$pdf->AddPage();
$pdf->SetFont('Arial', 'B', 27);
$message = "{$group}\nNEEDS YOUR HELP!";
$pdf->MultiCell(0, 30, $message, 0, 'C', 0);
$im = 'images/approved/' . "{$id}" . '.jpg';
$size = getimagesize($im);
$x = (612 - $size[0]) / 2;
$y = 122;
$pdf->image($im, $x, $y);
$pdf->SetY($size[1] + 122 + 20);
$pdf->SetFont('Arial', '', 14);
$message = $cause;
$pdf->MultiCell(0, 14, $message, 0, 'J', 0);
$pdf->ln();
$message = "Go to www.benfund.com\nEnter the Benfund#: {$id} and click DONATE!\n\nFollow the on-screen instructions to complete you donation.";
$pdf->SetFont('Arial', 'B', 20);
$pdf->MultiCell(0, 21, $message, 0, 'C', 0);
$pdf->Output('benfund.pdf', 'I');
开发者ID:centaurustech,项目名称:BenFund,代码行数:26,代码来源:pdf_create.php


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