本文整理汇总了PHP中FPDF::Line方法的典型用法代码示例。如果您正苦于以下问题:PHP FPDF::Line方法的具体用法?PHP FPDF::Line怎么用?PHP FPDF::Line使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FPDF
的用法示例。
在下文中一共展示了FPDF::Line方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
$pdf->Text($col + 20, $row += 9, 'Admission No.');
$pdf->SetFont('Arial', 'B', 10);
$pdf->Text($col + 100, $row, $admno);
$pdf->SetFont('Arial', '', 10);
$pdf->Text($col + 20, $row += 9, 'Course to which Admitted ');
$pdf->SetFont('Arial', 'B', 10);
$pdf->Text($col + 100, $row, $course);
$pdf->SetFont('Arial', '', 10);
$pdf->Text($col + 20, $row += 9, 'Branch of Study / Specialisation');
$pdf->SetFont('Arial', 'B', 10);
$pdf->Text($col + 100, $row, $branch);
$pdf->SetFont('Arial', '', 10);
$pdf->Text($col + 20, $row += 9, 'Reason for Leaving');
$pdf->SetFont('Arial', 'B', 10);
$pdf->Text($col + 100, $row, $reason);
$pdf->SetFont('Arial', '', 10);
$pdf->Text($col, $row += 15, 'Signature of Student ');
$pdf->Text($col + 125, $row, 'Date : ');
$pdf->Line($col, $row += 5, 230 - 50, $row);
$pdf->SetFont('Arial', '', 10);
$pdf->Text($col, $row += 9, 'Last date of attendance :');
$pdf->Text($col + 100, $row, 'All liabilities cleared. TC may be issued');
$pdf->Text($col + 100, $row += 9, 'Character & Conduct ..........................');
$pdf->Text($col + 100, $row += 9, 'HOD : Date:');
$pdf->Text($col, $row += 15, 'T.C No.................issued on .............');
$pdf->Text($col, $row += 10, 'C.C No.................issued on .............');
$pdf->SetFont('Arial', 'B', 10);
$pdf->Text($col + 140, $row += 10, 'PRINCIPAL');
$pdf->SetFont('Arial', 'B', 10);
$pdf->Output('TC-Application-' . $name . '.pdf', 'D');
#}
示例2: while
if ($counter > count($amt)) {
break;
}
} while ($w < $MAX_LIMIT);
$str2 = "";
$sep = "";
for ($i = $counter; $i < count($amt); $i++) {
$str2 .= $sep . $amt[$i];
$w = $pdf->GetStringWidth($str2);
$sep = " ";
}
$pdf->Text(11.4, 0.9, $_GET['date']);
$pdf->Text(1.1, 2.6, $_GET['pay']);
$pdf->Text(1.6, 3.3, $str1);
$pdf->Text(0.4, 4.1, $str2);
$pdf->Line(13, 2.65, 14.8, 2.65);
//cross the 'or bearer' text
$pdf->SetFont('Arial', 'B', 12);
$pdf->Text(11.1, 4.1, number_format($_GET['amount']));
$pdf->Output("cheque.pdf", "D");
} else {
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="shortcut icon" href="../images/logo_icon.gif">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="../stylesheets/style.css" rel="stylesheet" type="text/css" />
<title><?php
echo $_SESSION['companyname'];
?>
示例3: genpdf
function genpdf($typefacture, $datefacture, $nofacture, $montant, $civilite, $client, $contact, $chrono, $today)
{
$pdf = new FPDF("P", "mm", "A4");
$pdf->AddPage();
$pdf->SetMargins(20, 20);
$pdf->AddFont("Arialb", "", "arialb.php");
//$pdf->AddFont("Courier","","arialb.php");
/////////////////////////////////////en tete////////////////////////////////////////
//logo
$pdf->SetXY(18, 24);
$X = $pdf->GetX();
$Y = $pdf->GetY();
$pdf->Image("img/logo.jpg", $X, $Y, 23, 19, "jpg");
//Commune de Faa"a
$pdf->SetXY(42, 22);
$X = $pdf->GetX();
$Y = $pdf->GetY();
$pdf->SetFont("Arialb", "", 13);
$pdf->Cell(55, 10, utf8_decode("COMMUNE DE FAA'A"));
$pdf->SetXY($X + 1, $Y + 8);
$pdf->SetFont("Arial", "", 12);
$pdf->Cell(55, 5, utf8_decode("N° {$chrono}/DAF/FTR-Régie-hp"), 1, 1, "C");
//$X=$pdf->GetX();
$Y = $pdf->GetY();
$pdf->SetXY($X, $Y);
$pdf->SetFont("Arial", "", 9);
$pdf->Cell(55, 5, utf8_decode("Affaire suivie par : Hinatini Parker"), 0, 1);
$Y = $pdf->GetY();
$pdf->SetXY($X, $Y);
$pdf->SetFont("Arial", "", 9);
$pdf->Cell(55, 3, utf8_decode("Téléphone : 800 960 poste 421"), 0, 0);
///////////////////////////////////fin en tete/////////////////////////////////////
///////////////////////////////////colonne droite/////////////////////////////////
//Date
$pdf->SetXY($X + 100, $Y);
$pdf->SetFont("Arial", "", 10);
$pdf->Cell(55, 3, "Faa'a le " . $today, 0);
///////////////////////////////////fin colonne droite////////////////////////////
/////////////////////////////////info exp/dest //////////////////////////////////////
//Le Maire
$pdf->SetY(60);
$pdf->SetFont("times", "", 18);
$pdf->Cell(0, 10, "Le Maire", 0, 1, "C");
//Destinataire
$pdf->SetY(70);
$pdf->SetFont("Arial", "", 10);
$pdf->Multicell(0, 5, utf8_decode("à\n{$client}\n{$contact}"), 0, "C");
$currentY = $pdf->GetY();
$pdf->SetY($currentY + 10);
$pdf->SetFont("Arialb", "U", 10);
$pdf->Cell(20, 5, utf8_decode("Objet :"), 0, 0, "L");
$pdf->SetFont("Arialb", "", 10);
$pdf->Cell(0, 5, utf8_decode("Relance des factures impayées"), 0, 1, "L");
$pdf->SetFont("Arial", "U", 10);
$pdf->Cell(20, 5, utf8_decode("N/Réf :"), 0, 0, "L");
$pdf->SetFont("Arial", "", 10);
$pdf->Cell(0, 5, utf8_decode("Facture {$typefacture} N° {$nofacture} du {$datefacture}"), 0, 1, "L");
$Y = $pdf->GetY();
$pdf->SetY($Y + 20);
$text = "{$civilite},\n\nJe vous informe que, sauf erreur de ma part, vous présentez un impayé " . "envers la Commune de FAA'A d'un montant de {$montant} FCP au titre de la (des) {$typefacture}.\n\n" . "Aussi, je vous demande de bien vouloir vous rapprocher de la Régie municipale pour vous acquitter de la somme due.\n\n" . "A défaut de réponse de votre part dans un délai de 45 jours à compter de la date du présent courrier," . "votre dossier sera transmis en contentieux à la Trésorerie des Iles du Vent, des Australes et des Archipels pour commandement de payer.\n\n" . "La Régie reste à votre disposition au 800.960 poste 421 pour toute entente préalable avant poursuite.\n\n" . "Je vous prie d'agréer, {$civilite}, l'expression de mes salutations distinguées";
$pdf->Multicell(0, 5, utf8_decode($text), 0, "L");
$pdf->Image("img/marianne.jpg", 150, 220, 31, 31, "jpg");
////////////////////////////////information////////////////////////////////////
$pdf->Line(20, 273, 190, 273);
$pdf->SetXY(20, 273);
$pdf->SetFont("Arial", "", 7);
$pdf->Cell(0, 3, utf8_decode("PK 4 côté mer - BP 60 002 - 98702 Faa’a Centre - Tahiti / Tél. : (689) 800 960 - Télécopie : (689) 834 890 - E-mail : mairiefaaa@mail.pf\n"), 0, 0, "C");
////////////////////////////////fin information////////////////////////////////////
$pdf->Output();
}
示例4:
$pdf->Cell('', 1, '', '', 1, 'C');
$pdf->Cell('', 1, '', '', 1, 'C');
$pdf->Cell('', 1, '', '', 1, 'C');
$pdf->Cell('', 1, '', '', 1, 'C');
$pdf->Cell('', 1, '', '', 1, 'C');
$pdf->Cell('', 1, $data_atual, '', 1, 'C');
$pdf->Cell('', 1, $impressao_ordem, '', 1, 'R');
$pdf->ln();
$pdf->ln();
$pdf->ln();
$pdf->ln();
$pdf->Cell('', 1, $responsavel_empresa, '', 1, 'C');
$pdf->ln();
$pdf->ln();
$pdf->Write(0.5, $sub, '');
$pdf->Line(1, 25, 20, 25);
$pdf->Ln();
$pdf->Cell('', 0.5, $rodape, '', 1, 'C');
$rodape = $responsavel_endereco . ', ' . $responsavel_cidade . '-' . $responsavel_estado . ' CEP: ' . $responsavel_cep;
$pdf->Cell('', 0.5, $rodape, '', 1, 'C');
$rodape = 'Tel/Fax: ' . $responsavel_tel . '/' . $responsavel_fax . ' E-mail:' . $responsavel_email;
$pdf->Cell('', 0.5, $rodape, '', 1, 'C');
$rodape = 'www.cartoriopostal.com.br';
$pdf->Cell('', 0.5, $rodape, '', 1, 'C');
if ($anexar == 'on' and $id_servico == '16') {
$pdf->Close();
//imprime a saida
$sql = "select id_pedido_item from vsites_pedido_anexo as pa where anexo_nome='Declaração de Busca' and id_pedido_item='" . $id_pedido_item . "'";
$res_a = $objQuery->SQLQuery($sql);
$num_a = mysql_num_rows($res_a);
if ($num_a == '') {
示例5: line
function line($x1, $y1, $x2, $y2)
{
parent::Line($this->flash_y_offset + $y1, $this->flash_x_offset + $x1, $this->flash_y_offset + $y2, $this->flash_x_offset + $x2);
}
示例6: pdf_export_dots
//.........这里部分代码省略.........
if ($a['latitude'] == $b['latitude']) {
return 0;
}
return $a['latitude'] > $b['latitude'] ? -1 : 1;
}
$count_clusters = count($clusters);
for ($i = 0; $i < $count_clusters; $i++) {
$dots = $clusters[$i];
$_legend = array();
$j = 0;
foreach ($dots as $dot) {
$_legend[$dot['id']] = $legend[$dot['id']];
$j++;
if ($j >= $count_legend_items) {
break;
}
}
usort($_legend, "sort_by_lat");
$pdf->AddPage();
$pdf->Image($maps[$i], 0, 0, 0, 0, 'PNG');
$pdf->SetFont('Helvetica', '', 10);
$x = $h + $margin;
$y = $margin;
foreach ($_legend as $dot) {
$text = "{$dot['id']} / pg. {$dot['page']}";
$pdf->SetXY($x, $y);
$pdf->Cell(0, $row_h, $text);
$loc = new MMaps_Location($dot['latitude'], $dot['longitude']);
$pt = $map->locationPoint($loc);
$x1 = $x - $margin / 8;
$y1 = $y + $row_h / 2;
$x2 = $pt->x / $dpi;
$y2 = $pt->y / $dpi;
$pdf->Line($x1, $y1, $x2, $y2);
$y += $row_h * 1.1;
}
}
# Now the rows (of dots)
foreach ($pages as $page) {
$pdf->AddPage();
$x = $margin;
$y = $margin;
$z = 0;
foreach ($page as $data) {
$style = $data['bold'] ? 'B' : '';
$pdf->SetFont('Helvetica', $style, 10);
$x_offset = $col_width * 0.1;
$y_offset = $data['height'] * 0.1;
$max_width = $col_width - $x_offset * 3;
$bg = $z % 2 ? 255 : 235;
$z++;
foreach ($data['row'] as $value) {
$value = trim($value);
$width = $pdf->GetStringWidth($value);
$pdf->SetFillColor($bg);
$pdf->Rect($x, $y, $col_width, $data['height'], 'F');
# Don't bother with MultiCell - it is behaving
# badly (20110120/straup)
if ($width < $max_width) {
$pdf->SetXY($x + $x_offset, $y + $y_offset);
$pdf->Cell(0, $row_h, $value);
} else {
$_x = $x;
$_y = $y;
$lines = array();
$buffer = '';
示例7: Line
function Line($x1, $y1, $x2, $y2, $style = null)
{
if ($style) {
$this->SetLineStyle($style);
}
parent::Line($x1, $y1, $x2, $y2);
}
示例8: pathinfo
$pdf->Cell(35, 4, $arrData[name], $border);
$pdf->Ln();
$pdf->Cell(16, 4, "From", $border);
$pdf->Cell(35, 4, $from, $border);
$pdf->Ln();
$pdf->Cell(16, 4, "Subject", $border);
$pdf->Cell(35, 4, $arrData[subject], $border);
$pdf->Ln();
$pdf->Cell(16, 4, "College", $border);
$pdf->Cell(35, 4, $arrData[college], $border);
$pdf->Ln();
$pdf->Ln();
if ($arrData[picture] != "" && file_exists("residentsnh/" . $arrData[picture])) {
$path_parts = pathinfo($arrData[picture]);
if ($path_parts[extension] != 'bmp') {
$pdf->Image("residentsnh/" . $arrData[picture], $pdf->GetX() + 100, $pdf->GetY() - 25, 18);
} else {
echo "Error, " . $arrData[name] . " " . $arrData[surname] . " has it's picture in BMP format!<br>";
}
} else {
$pdf->Image("imgs/no_picture.png", $pdf->GetX() + 100, $pdf->GetY() - 25, 18);
}
$pdf->Line(46, $pdf->GetY(), 163, $pdf->GetY());
$pdf->Ln();
$pdf->Ln();
if ($i == 8) {
$pdf->AddPage();
$i = 0;
}
}
$pdf->Output();
示例9: drawPDF
public function drawPDF()
{
$pdf = new \FPDF('L', 'mm', 'Letter');
$pdf->SetMargins(3.175, 3.175, 3.175);
$pdf->SetAutoPageBreak(false);
define('FPDF_FONTPATH', dirname(__FILE__) . '/noauto/fonts/');
$pdf->AddFont('Gill', '', 'GillSansMTPro-Medium.php');
$pdf->AddFont('Gill', 'B', 'GillSansMTPro-Heavy.php');
$pdf->AddFont('GillBook', '', 'GillSansMTPro-Book.php');
$pdf->SetFont('Gill', '', 16);
$data = $this->loadItems();
$count = 0;
$sign = 0;
$width = 68.67;
$height = 71;
$top = 22;
$left = 6.0;
$effective_width = $width - $left;
foreach ($data as $item) {
if ($count % 12 == 0) {
if ($count != 0) {
// draw tick marks again
// sometimes other content of the page
// overwrites them
$pdf->Line(2, $height + 0.0, 6, $height + 0.0);
$pdf->Line(2, 2 * $height + 1.0, 6, 2 * $height + 1.0);
$pdf->Line(4 * $width - 3, $height + 0.0, 4 * $width + 1, $height + 0.0);
$pdf->Line(4 * $width - 3, 2 * $height + 1.0, 4 * $width + 1, 2 * $height + 1.0);
$pdf->Line($width + 1.5, 2, $width + 1.5, 8);
$pdf->Line(2 * $width + 1.5, 2, 2 * $width + 1.5, 8);
$pdf->Line(3 * $width + 1.5, 2, 3 * $width + 1.5, 8);
$pdf->Line($width + 1.5, 3 * $height - 6, $width + 1.5, 3 * $height);
$pdf->Line(2 * $width + 1.5, 3 * $height - 6, 2 * $width + 1.5, 3 * $height);
$pdf->Line(3 * $width + 1.5, 3 * $height - 6, 3 * $width + 1.5, 3 * $height);
}
$pdf->AddPage();
// draw tick marks for cutting
$pdf->Line(2, $height + 0.0, 6, $height + 0.0);
$pdf->Line(2, 2 * $height + 1.0, 6, 2 * $height + 1.0);
$pdf->Line(4 * $width - 3, $height + 0.0, 4 * $width + 1, $height + 0.0);
$pdf->Line(4 * $width - 3, 2 * $height + 1.0, 4 * $width + 1, 2 * $height + 1.0);
$pdf->Line($width + 1.5, 2, $width + 1.5, 8);
$pdf->Line(2 * $width + 1.5, 2, 2 * $width + 1.5, 8);
$pdf->Line(3 * $width + 1.5, 2, 3 * $width + 1.5, 8);
$pdf->Line($width + 1.5, 3 * $height - 6, $width + 1.5, 3 * $height);
$pdf->Line(2 * $width + 1.5, 3 * $height - 6, 2 * $width + 1.5, 3 * $height);
$pdf->Line(3 * $width + 1.5, 3 * $height - 6, 3 * $width + 1.5, 3 * $height);
$sign = 0;
}
$row = floor($sign / 4);
$column = $sign % 4;
$price = $item['normal_price'];
if ($item['scale']) {
if (substr($price, 0, 1) != '$') {
$price = sprintf('$%.2f', $price);
}
$price .= ' /lb.';
} elseif (isset($item['signMultiplier'])) {
$price = $this->formatPrice($item['normal_price'], $item['signMultiplier']);
} else {
$price = $this->formatPrice($item['normal_price']);
}
$pdf->Image(dirname(__FILE__) . '/cd_head_16.png', $left - 1 + $width * $column, $top - 19 + $row * $height, $width - 6);
$pdf->SetXY($left + $width * $column, $top + $row * $height + 1);
$pdf->SetFont('Gill', 'B', $this->SMALL_FONT);
$pdf->MultiCell($effective_width, 6, strtoupper($item['brand']), 0, 'C');
/**
This block attempts to write the description then
checks how many lines it took. If the description was
longer than two lines, it whites the whole thing out,
drops one font size, and tries again. Calculating
effective text size with smart line breaks seems
really tough.
*/
$pdf->SetFont('Gill', '', $this->MED_FONT);
$font_shrink = 0;
while (true) {
$pdf->SetX($left + $width * $column);
$y = $pdf->GetY();
$pdf->MultiCell($effective_width, 7, $item['description'], 0, 'C');
if ($pdf->GetY() - $y > 14) {
$pdf->SetFillColor(0xff, 0xff, 0xff);
$pdf->Rect($left + $width * $column, $y, $left + $width * $column + $effective_width, $pdf->GetY(), 'F');
$font_shrink++;
if ($font_shrink >= $this->MED_FONT) {
break;
}
$pdf->SetFontSize($this->MED_FONT - $font_shrink);
$pdf->SetXY($left + $width * $column, $y);
} else {
if ($pdf->GetY() - $y < 14) {
$words = explode(' ', $item['description']);
$multi = '';
for ($i = 0; $i < floor(count($words) / 2); $i++) {
$multi .= $words[$i] . ' ';
}
$multi = trim($multi) . "\n";
for ($i = floor(count($words) / 2); $i < count($words); $i++) {
$multi .= $words[$i] . ' ';
}
//.........这里部分代码省略.........
示例10:
$pdf->SetFont('Arial', 'B', 11);
$pdf->Ln(22);
$pdf->SetFont('Arial', '', 10);
$pdf->Cell(75, 8, '_______________________________', 0, 0, "C");
$pdf->Cell(135, 8, '_______________________________', 0, 0, "C");
$pdf->Ln(7);
$pdf->Cell(80, 8, 'Firma del Solicitante', 0, 0, "C");
$pdf->Cell(125, 8, 'V.B del Jefe Inmediato ', 0, 0, "C");
$pdf->Ln(15);
$pdf->Cell(180, 8, '____________________________________', 0, 0, "C");
$pdf->Ln(7);
$pdf->Cell(180, 8, utf8_decode('Sección de Efectividad y Control'), 0, 0, "C");
$pdf->Ln(5);
$pdf->Cell(180, 8, 'del Recurso Humano', 0, 0, "C");
$pdf->Ln(35);
$pdf->Line(20, 45, 500, 45);
$pdf->Image($maindir . 'assets/img/logo_unah.png', 10, 150, 18, 30, 'PNG');
$pdf->Image($maindir . 'assets/img/logo-cienciasjuridicas.png', 170, 150, 25, 25, 'PNG');
$pdf->Cell(22, 10, '', 0);
$pdf->SetFont('Arial', '', 18);
$pdf->Cell(5, 10, '', 0);
$pdf->Cell(70, 10, utf8_decode('Universidad Nacional Autónoma de Honduras'), 0);
$pdf->Ln(15);
$pdf->SetFont('Arial', 'U', 14);
$pdf->Cell(30, 8, '', 0, 0, "C");
$pdf->Cell(130, 8, ' Control de Permisos Personales', 0, 0, "C");
$pdf->Rect(6, 184, 200, 100, 'D');
$pdf->SetFont('Arial', '', 12);
$pdf->Ln(10);
$nombreCompleto = "{$result['Primer_nombre']} {$result['Segundo_nombre']} {$result['Primer_apellido']} {$result['Segundo_Apellido']}";
$pdf->Cell(100, 15, 'Nombre: ' . $nombreCompleto, 0, 0, "");
示例11: define
define('FPDF_FONTPATH', 'font/');
include $FANNIE_ROOT . 'src/fpdf/fpdf.php';
$pdf = new FPDF('P', 'mm', 'Letter');
//start new instance of PDF
$pdf->Open();
//open new PDF Document
$count = 0;
$x = 0;
$y = 0;
$date = date("m/d/Y");
$signage = new FannieSignage(array());
for ($i = 0; $i < 4; $i++) {
if ($count % 4 == 0) {
$pdf->AddPage();
$pdf->SetDrawColor(0, 0, 0);
$pdf->Line(108, 0, 108, 279);
$pdf->Line(0, 135, 215, 135);
}
$x = $count % 2 == 0 ? 5 : 115;
$y = $count / 2 % 2 == 0 ? 10 : 145;
$pdf->SetXY($x, $y);
$tmp = explode(":", $toid);
$pdf->SetFont('Arial', '', '12');
$pdf->Text($x + 85, $y, "1 / 1");
$pdf->SetFont('Arial', 'B', '24');
$pdf->Cell(100, 10, 'WFC Special', 0, 1, 'C');
$pdf->SetFont('Arial', '', '12');
$pdf->SetX($x);
$pdf->SetFont('Arial', '', '16');
$pdf->Cell(100, 9, $_REQUEST['desc'], 0, 1, 'C');
$pdf->SetX($x);
示例12: strtoupper
$pdf->ln(5);
$altura = 6;
$pdf->setfont('arial', 'B', 8);
$pdf->cell(130, $altura, 'TOMADOR DO SERVIÇO', 1, 0, "C", 0);
$pdf->cell(60, $altura, 'DADOS DA PLANILHA', 1, 1, "C", 0);
$pdf->setfont('arial', '', 8);
$pdf->cell(130, $altura, 'NOME : ' . strtoupper($z01_nome), 1, 0, "L", 0);
$pdf->cell(60, $altura, 'CODIGO : ' . db_formatar($planilha, 's', '0', 4, 'e'), 1, 1, "L", 0);
$pdf->cell(130, $altura, 'INSCRIÇÃO : ' . $q20_inscr, 1, 0, "L", 0);
$pdf->cell(60, $altura, 'COMPETÊNCIA : ' . db_formatar($q20_mes, 's', '0', 2, 'e') . '/' . $q20_ano, 1, 1, "L", 0);
$pdf->multicell(190, $altura, 'OBSERVAÇÃO : Os valores registrados nesta planilha somente serão considerados após o pagamento desta guia.', 1, "L", 0);
$linha = 65;
for ($i = 0; $i < 2; $i++) {
$pdf->SetLineWidth(0.05);
//$pdf->SetDash(1,1);
$pdf->Line(5, $linha - 2, 205, $linha - 2);
// linha tracejada horizontal
//$pdf->SetDash();
$pdf->Line(47, $linha, 47, $linha + 9);
$pdf->Line(63, $linha, 63, $linha + 9);
$pdf->SetLineWidth(0.6);
$pdf->Line(10, $linha + 9, 195, $linha + 9);
$pdf->SetLineWidth(0.2);
$pdf->Line(10, $linha + 17, 195, $linha + 17);
$pdf->Line(10, $linha + 25, 195, $linha + 25);
$pdf->Line(10, $linha + 33, 195, $linha + 33);
$pdf->Line(10, $linha + 41, 195, $linha + 41);
$pdf->Line(149, $linha + 49, 195, $linha + 49);
$pdf->Line(149, $linha + 57, 195, $linha + 57);
$pdf->Line(149, $linha + 65, 195, $linha + 65);
$pdf->Line(149, $linha + 73, 195, $linha + 73);
示例13: AnexoDAO
$sub = str_replace("<custas>", 'Custas: R$ ' . $custas, $sub);
} else {
$sub = str_replace("<custas>", '', $sub);
}
$pdf->AddPage();
$pdf->Image('../images/header.jpg', '0', '0', '19', '3,04', 'JPG');
$pdf->SetFont('times', 'B', 12);
$pdf->Cell(19.2, 2.5, 'NÃO EMITIMOS E NEM VENDEMOS CERTIDÕES E SIM PRAZOS E SOLUÇÕES', 0, 1, 'C');
require 'gera_imoveis_busca_' . $id_impresso . '.php';
$pdf->SetFont('times', '', 12);
$pdf->Write(0.5, $sub, '');
$pdf->Write(0.5, '
', '');
$pdf->SetFont('times', 'B', 10);
$pdf->Line(1, 25.5, 20, 25.5);
$pdf->SetY(25.5);
$pdf->Cell(0, 0.5, $responsavel_empresa, 0, 1, 'C');
$rodape = $responsavel_endereco . ',
' . $responsavel_cidade . '-' . $responsavel_estado . ' CEP: ' . $responsavel_cep;
$pdf->Cell(0, 0.5, $rodape, 0, 1, 'C');
$rodape = 'Tel/Fax: ' . $responsavel_tel . '/' . $responsavel_fax . '
E-mail:' . $responsavel_email;
$pdf->Cell(0, 0.5, $rodape, 0, 1, 'C');
$rodape = 'www.cartoriopostal.com.br';
$pdf->Cell(0, 0.5, $rodape, 0, 1, 'C');
if ($anexar == 'on' and ($id_servico == '11' or $id_servico == '169' or $id_servico == '170')) {
$pdf->Close();
//imprime a saida
$anexoDAO = new AnexoDAO();
示例14: ucwords
$pdf->Cell(10, 12, "No. :", "", 0, 'L');
$pdf->SetFont("Times", "B", 10);
$pdf->Cell(0, 12, "{$receipt_prefix}{$receipt_no}", "", 0, 'R');
//paymentvoucher Date label block (5)
$pdf->SetXY($xmargin + 145, 18);
$pdf->SetFont("Times", "", 10);
$pdf->Cell(10, 12, "Date :", "", 0, 'L');
$pdf->SetFont("times", "B", 10);
$pdf->Cell(0, 12, "{$receipt_date}", "", 0, 'R');
//Receipt From label block (6)
$pdf->SetXY(10, 30);
// ori Y=60
$pdf->SetFont("Times", "", 10);
$pdf->Cell(40, 12, "Received From :", "", 0, 'L');
$pdf->SetFont("Times", "B", 10);
$pdf->Line($pdf->GetX(), $pdf->GetY() + 9, $pdf->GetX() + 150, $pdf->GetY() + 9);
$pdf->Cell(0, 12, "{$paidfrom}", "", 0, 'L');
//Receipt AMT in Text label block (7)
$pdf->SetXY(10, 38);
$pdf->SetFont("Times", "", 10);
$pdf->Cell(40, 12, "The Sum Of :", "", 0, 'L');
$pdf->SetFont("Times", "", 10);
$pdf->Line($pdf->GetX(), $pdf->GetY() + 9, $pdf->GetX() + 150, $pdf->GetY() + 9);
//$pdf->Line($pdf->GetX(),86,$pdf->GetX()+150,86);
//echo ucwords("SAAAS SDA asDDS");
$txt_sum = ucwords(strtolower(convertNumber($originalamt)));
$pdf->MultiCell(0, 10, $currency_code . " " . $txt_sum, "", 'L');
//Receipt AMT in Text label block (8)
$pdf->SetXY(10, 45);
$pdf->SetFont("Times", "", 10);
$pdf->Cell(40, 10, "Description :", "", 0, 'L');
示例15: COUNT
$page = 1;
$count = "SELECT DISTINCT COUNT(B.`doc_number`) AS count\r\n FROM material_transfers A, material_transfer_details B\r\n WHERE A.doc_number='{$doc_num}'\r\n AND B.doc_number = A.doc_number ;";
connectToDB();
$getCount = mysql_query($count) or die("Execution SQL; error");
$rowCount = mysql_fetch_array($getCount);
$items = $rowCount['count'];
$items = $items / $perpage;
$totalpage = ceil($items);
//////////////////////
/////////////////////
$pdf = new FPDF();
$pdf->AddPage('P', 'Letter');
$pdf->SetFont('Arial', '', 10);
$pdf->Image('UMW.jpeg', 10, 3, 180, 23);
//draw line
$pdf->Line(10, 50, 10, 220);
//outer
$pdf->Line(10, 50, 205, 50);
$pdf->Line(10, 220, 205, 220);
$pdf->Line(205, 50, 205, 220);
$pdf->Line(20, 50, 20, 220);
//1
$pdf->Line(44, 50, 44, 220);
//2
$pdf->Line(135, 50, 135, 220);
//3-qtty
$pdf->Line(150, 50, 150, 220);
//4-uom
$pdf->Line(164, 50, 164, 220);
//5
$pdf->Line(10, 57, 205, 57);