本文整理汇总了PHP中PDF::SetY方法的典型用法代码示例。如果您正苦于以下问题:PHP PDF::SetY方法的具体用法?PHP PDF::SetY怎么用?PHP PDF::SetY使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PDF
的用法示例。
在下文中一共展示了PDF::SetY方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: render
/**
* PDF image renderer
*
* @param PDF $pdf
*
* @return void
*/
function render($pdf)
{
global $lastpicbottom, $lastpicpage, $lastpicleft, $lastpicright;
// Check for a pagebreak first
if ($pdf->checkPageBreakPDF($this->height + 5)) {
$this->y = $pdf->GetY();
}
$curx = $pdf->GetX();
// If current position (left)set "."
if ($this->x == ".") {
$this->x = $pdf->GetX();
} else {
$this->x = $pdf->addMarginX($this->x);
$pdf->SetX($curx);
}
if ($this->y == ".") {
//-- first check for a collision with the last picture
if (isset($lastpicbottom)) {
if ($pdf->PageNo() == $lastpicpage && $lastpicbottom >= $pdf->GetY() && $this->x >= $lastpicleft && $this->x <= $lastpicright) {
$pdf->SetY($lastpicbottom + 5);
}
}
$this->y = $pdf->GetY();
} else {
$pdf->SetY($this->y);
}
if ($pdf->getRTL()) {
$pdf->Image($this->file, $pdf->getPageWidth() - $this->x, $this->y, $this->width, $this->height, "", "", $this->line, false, 72, $this->align);
} else {
$pdf->Image($this->file, $this->x, $this->y, $this->width, $this->height, "", "", $this->line, false, 72, $this->align);
}
$lastpicpage = $pdf->PageNo();
$pdf->lastpicpage = $pdf->getPage();
$lastpicleft = $this->x;
$lastpicright = $this->x + $this->width;
$lastpicbottom = $this->y + $this->height;
// Setup for the next line
if ($this->line == "N") {
$pdf->SetY($lastpicbottom);
}
}
示例2: PDF
$this->Cell(48, 5, utf8_decode("Fecha Impresión " . Date::today()), 0, 0, 'L');
$this->Cell(48, 5, utf8_decode('Página') . $this->PageNo() . '/{nb}', 0, 0, 'R');
}
}
$pdf = new PDF('P', 'mm', array(105, 148));
$pdf->AliasNbPages();
for ($i = 0; $i < 2; $i++) {
$pdf->AddPage();
$pdf->Rect(10, 10, 85, 128);
$pdf->Line(10, 20, 95, 20);
$pdf->Line(10, 30, 95, 30);
$pdf->SetFont('helvetica', 'B', 7);
$pdf->SetFillColor(120, 120, 120);
$pdf->SetTextColor(255, 255, 255);
$pdf->SetX(10);
$pdf->SetY(10);
$pdf->Cell(85, 10, utf8_decode($this->planillaDataDet[0]['id_personal'] . " - " . $this->planillaDataDet[0]['nombre_personal']), 1, 0, 'C', true);
$pdf->Ln(13);
$pdf->SetTextColor(0, 0, 0);
$pdf->Cell(15, 5, utf8_decode('BOLETA INFORMATIVA DETALLE'), 0, 0, 'L');
$pdf->Ln(10);
$pdf->Cell(65, 5, utf8_decode('Básico ' . $this->planillaDataDet[0]['nom_planilla'] . ' ( ' . $this->planillaDataDet[0]['periodo'] . ' )'), 0, 0, 'L');
$pdf->Cell(20, 5, utf8_decode($this->planillaDataDet[0]['neto_total'] + $this->planillaDataDet[0]['monto_asig_familiar'] + $this->planillaDataDet[0]['otros_descuentos']), 0, 0, 'R');
$pdf->Ln(5);
$pdf->Cell(15, 5, utf8_decode('DESCUENTOS'), 0, 0, 'L');
$pdf->Ln(5);
foreach ($this->planillaDataDesc as $b) {
$pdf->Cell(65, 5, utf8_decode($b['nom_descuento'] . " - " . $b['detalle_descuento']), 0, 0, 'L');
$pdf->Cell(20, 5, utf8_decode($b['monto_descuento']), 0, 0, 'R');
$pdf->Ln(5);
}
示例3: setLGUinfo
/*=======================================================
frederick >>> change this; incorrect arrangement of variable
>> SEE: function setLGUinfo (line # 22)
$pdf->setLGUinfo($getlgu[0],$getprov[0],$resulta[2]);
===========================================================*/
$pdf->setLGUinfo($getprov[0], $getlgu[0], $resulta[2]);
$pdf->setYears($dateprev, $datenext, $datenextnext);
$pdf->AddPage();
$pdf->AliasNbPages();
$getnat = @mysql_query("select * from ebpls_buss_nature");
$Y_Label_position = 50;
$Y_Table_Position = 55;
//header
$dateprinted = date('Y-m-d');
$pdf->SetFont('Arial', 'B', 6);
$pdf->SetY($Y_Label_position);
$pdf->SetX(5);
$pdf->Cell(340, 5, $dateprinted, 0, 1, 'R');
$pdf->SetFont('Arial', 'B', 6);
$pdf->SetY($Y_Label_position + 10);
$pdf->SetX(5);
$pdf->Cell(100, 10, 'LINE OF BUSINESS', 1, 0, 'C');
$pdf->SetX(105);
$pdf->Cell(60, 5, $dateprev, 1, 0, 'C');
$pdf->SetX(165);
$pdf->Cell(60, 5, $datenext, 1, 0, 'C');
$pdf->SetX(225);
$pdf->Cell(60, 5, $datenextnext, 1, 0, 'C');
$pdf->SetY($Y_Label_position + 15);
$pdf->SetX(5);
$pdf->Cell(100, 5, '', 0, 0, 'C');
示例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";
示例5: array
$this->SetFont('Times', '', 12);
// Imprimir texto en una columna de 6 cm de ancho
$this->MultiCell(60, 5, $txt);
$this->Ln();
// Cita en itálica
$this->SetFont('', 'I');
$this->Cell(0, 5, '(fin del extracto)');
// Volver a la primera columna
$this->SetCol(0);
}
}
$dias = array("Domingo", "Lunes", "Martes", "Miercoles", "Jueves", "Viernes", "Sábado");
$meses = array("Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre");
$pdf = new PDF();
$pdf->AddPage();
$pdf->SetY(35);
$pdf->SetX(110);
$pdf->SetFont('Times', '', 10);
$pdf->Cell(40, 8, utf8_decode("Fecha de Expedicion: ") . utf8_decode($dias[date('w')] . " " . date('d') . " de " . $meses[date('n') - 1] . " del " . date('Y')), 0, 1);
$pdf->SetY(45);
$pdf->SetX(20);
$pdf->Cell(100, 8, utf8_decode("Hotel : ") . $nombreHotel, 0, 0);
$pdf->Cell(60, 8, utf8_decode("Folio de la venta : ") . $folioVenta, 1, 1);
$pdf->SetX(20);
$pdf->Cell(60, 8, utf8_decode("Direccion : ") . $direccion, 0, 1);
$pdf->SetX(20);
$pdf->Cell(100, 8, utf8_decode("Telefono Hotel. : ") . $telefono, 0, 0);
$pdf->Cell(60, 8, utf8_decode("Opradora : ") . $opm, 1, 1);
$pdf->SetX(20);
$pdf->Cell(160, 8, utf8_decode("Coordinador(a) : ") . $ResConP, 1, 1);
$pdf->SetX(20);
示例6: 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);
示例7: while
$pdf->Cell(2, 5, ":", 0, 0, 'L');
$pdf->Cell(33, 5, $bar1->keterangan, 0, 0, 'L');
$pdf->Ln();
$pdf->Ln();
}
$str1 = "select * from " . $dbname . ".pad_photo\r\n where idlahan = '" . $idlahan . "'";
$res1 = mysql_query($str1);
while ($bar1 = mysql_fetch_object($res1)) {
$pdf->Cell(13, 5, $_SESSION['lang']['photo'], 0, 0, 'L');
$pdf->Cell(2, 5, ":", 0, 0, 'L');
$pdf->Cell(73, 5, $bar1->filename, 0, 0, 'L');
$pdf->Ln();
$yey = $pdf->GetY();
$path = 'filepad/' . $bar1->filename;
$pdf->Image($path, 25, $yey, 70);
$pdf->SetY($yey + 80);
$pdf->Ln();
}
$pdf->Output();
exit;
break;
case 'update':
$str = "update " . $dbname . ".pad_lahan \r\n set pemilik=" . $pemilik . ", \r\n unit='" . $unit . "', \r\n lokasi='" . $lokasi . "', \r\n luas=" . $luas . ", \r\n luasdapatditanam=" . $bisaditanam . ", \r\n rptanaman=" . $rptanaman . ", \r\n rptanah=" . $rptanah . ", \r\n totalgantirugi=" . ($rptanaman + $rptanah) . ", \r\n statuspermintaandana=" . $statuspermintaandana . ", \r\n statuspermbayaran=" . $statuspermbayaran . ", \r\n kodeblok='" . $blok . "', \r\n statuskades=" . $statuskades . ", \r\n statuscamat=" . $statuscamat . ", \r\n tanggalpengajuan=" . $tanggalpermintaan . ", \r\n tanggalbayar=" . $tanggalbayar . ", \r\n tanggalkades=" . $tanggalkades . ", \r\n tanggalcamat=" . $tanggalcamat . ", \r\n updateby=" . $_SESSION['standard']['userid'] . ", \r\n biayakades=" . $biayakades . ", \r\n biayacamat=" . $biayacamat . ", \r\n biayamatrai=" . $biayamatrai . ", \r\n keterangan='" . $keterangan . "', \r\n nosurat='" . $nosurat . "', \r\n batastimur='" . $batastimur . "', \r\n batasbarat='" . $batasbarat . "', \r\n batasutara='" . $batasutara . "', \r\n batasselatan='" . $batasselatan . "'\r\n where idlahan=" . $mid;
if (mysql_query($str)) {
} else {
echo " Gagal," . addslashes(mysql_error($conn));
exit;
}
break;
case 'insert':
$str = "insert into " . $dbname . ".pad_lahan (\r\n pemilik, \r\n unit, \r\n lokasi, \r\n luas, \r\n luasdapatditanam, \r\n rptanaman, \r\n rptanah, \r\n totalgantirugi, \r\n statuspermintaandana, \r\n statuspermbayaran, \r\n kodeblok, \r\n statuskades, \r\n statuscamat, \r\n tanggalpengajuan, \r\n tanggalbayar, \r\n tanggalkades, \r\n tanggalcamat, \r\n updateby, \r\n biayakades, \r\n biayacamat, \r\n biayamatrai, \r\n keterangan, \r\n nosurat, \r\n batastimur, \r\n batasbarat, \r\n batasutara, \r\n batasselatan)\r\n values(\r\n " . $pemilik . ",\r\n '" . $unit . "', \r\n '" . $lokasi . "',\r\n " . $luas . ",\r\n " . $bisaditanam . ",\r\n " . $rptanaman . ", \r\n " . $rptanah . ", \r\n " . ($rptanaman + $rptanah) . ",\r\n " . $statuspermintaandana . ", \r\n " . $statuspermbayaran . ", \r\n '" . $blok . "', \r\n " . $statuskades . ", \r\n " . $statuscamat . ",\r\n " . $tanggalpermintaan . ",\r\n " . $tanggalbayar . ",\r\n " . $tanggalkades . ",\r\n " . $tanggalcamat . ",\r\n " . $_SESSION['standard']['userid'] . ",\r\n " . $biayakades . ",\r\n " . $biayacamat . ", \r\n " . $biayamatrai . ",\r\n '" . $keterangan . "', \r\n '" . $nosurat . "', \r\n '" . $batastimur . "',\r\n '" . $batasbarat . "', \r\n '" . $batasutara . "', \r\n '" . $batasselatan . "' \r\n )";
示例8: PDF
}
}
$pdf = new PDF('L', 'mm', 'A4');
$pdf->AddPage();
$th = $_REQUEST['th'];
$kdunit = $_REQUEST['kdunit'];
$renstra = th_renstra($th);
$font = 'Arial';
$noborder = 0;
$border = 1;
$size = 10;
$ln = 5;
$margin = 5;
$tinggi = 275;
$y = $pdf->GetY();
$pdf->SetY($y);
$pdf->Image('../../css/images/logo_lapan.jpg', 135, 5, 30, 30, 'jpg');
$y = $pdf->GetY();
$pdf->Cell(0, 30, '', '', 1, 'L');
$oSatker = mysql_query("SELECT NAMA FROM t_satker WHERE KDUNITKERJA = '{$kdunit}' ");
$Satker = mysql_fetch_array($oSatker);
$kdeselon1 = substr($kdunit, 0, 3) . '000';
$oEselon = mysql_query("SELECT nama FROM tb_unitkerja WHERE kdunit = '{$kdeselon1}' ");
$Eselon = mysql_fetch_array($oEselon);
$w = array(0, 290);
$pdf->SetFont($font, 'B', $size + 2);
$pdf->SetX($margin + $w[0]);
$pdf->Cell($w[1], $ln, 'RENCANA AKSI DARI PENETAPAN KINERJA', '', 1, 'C');
$pdf->SetX($margin + $w[0]);
$pdf->Cell($w[1], $ln, trim(strtoupper(nm_unit($kdunit))), '', 1, 'C');
$pdf->Ln() * 2;
示例9:
// $pdf->Cell(40,10,number_format($dtNoakunRup[$thnBudget][$lstThaTnm][$ktKrgng],0),1,0,'R',1);
// $pdf->Cell(40,10,number_format($hslBagi[$thnBudget][$lstThaTnm][$ktKrgng],0),1,0,'R',1);
// }
// }
//
// }
// //$pdf->Cell($colTotal,$height,"",1,1,'C',1);
//
// $brs=0;
// $awal=1;
// //$totAkun+=1;
// }
$pdf->SetFont('Arial', '', 5);
$yAkhir = $pdf->GetY();
$xPertama = $pdf->GetX();
$pdf->SetY($yAkhir);
$pdf->SetX($xPertama);
$pdf->Cell(58, $height, $barisNoakun, 1, 0, 'L', 1);
$pdf->Cell(150, $height, $optKegiatan[$barisNoakun], 1, 0, 'L', 1);
//echo $totRupiah[$thnBudget][$barisNoakun]."<br>";
if (substr($barisNoakun, 0, 1) == '1') {
@($hasilBagi[$barisNoakun] = $totRupiah[$thnBudget][$barisNoakun] / $ttlLuastbm);
} else {
@($hasilBagi[$barisNoakun] = $totRupiah[$thnBudget][$barisNoakun] / $ttlLuastm);
}
$pdf->Cell(40, 10, number_format($totRupiah[$thnBudget][$barisNoakun], 0), 1, 0, 'R', 1);
$pdf->Cell(40, 10, number_format($hasilBagi[$barisNoakun], 0), 1, 0, 'R', 1);
$grndTotal += $totRupiah[$thnBudget][$barisNoakun];
$grndTotalHsil += $hasilBagi[$barisNoakun];
$yAkhir = $pdf->GetY();
$xPertama = $pdf->GetX();
示例10:
//Calculamos la provincia
$codigoprovincia = $lafila["codprovincia"];
$consulta = "select * from provincias where codprovincia='{$codigoprovincia}'";
$query = mysql_query($consulta);
$row = mysql_fetch_array($query);
$pdf->Ln(5);
$pdf->Cell(20);
$pdf->Cell(80, 4, $lafila["codpostal"] . " - " . $lafila["direccion"] . " - " . $row["nombreprovincia"], 0, 0, 'L', 0);
$pdf->Cell(10);
$pdf->Cell(10, 4, $codfactura, 0, 0, 'L', 0);
//$pdf->Ln(14);
$pdf->Ln(5);
$pdf->Cell(20);
$pdf->Cell(40, 4, $lafila["localidad"], 0, 0, 'L', 0);
//ahora mostramos las lneas de la factura
$pdf->SetY(60);
$consulta2 = "Select * from factulinea where codfactura='{$codfactura}' order by numlinea";
$resultado2 = mysql_query($consulta2, $conexion);
$contador = 1;
$lineas = 0;
//agregado por errores joanlaga
while ($row = mysql_fetch_array($resultado2)) {
$pdf->Cell(20);
$contador++;
$codarticulo = mysql_result($resultado2, $lineas, "codigo");
$codfamilia = mysql_result($resultado2, $lineas, "codfamilia");
$cantidad1 = number_format(mysql_result($resultado2, $lineas, "cantidad"), 1, ".", ",");
$pdf->Cell(4, 4, $cantidad1, 0, 0, 'C');
// $pdf->Cell(4,4,mysql_result($resultado2,$lineas,"cantidad"),0,0,'C');
$sel_articulos = "SELECT * FROM articulos WHERE codarticulo='{$codarticulo}' AND codfamilia='{$codfamilia}'";
$rs_articulos = mysql_query($sel_articulos);
示例11:
$resv = mysql_query($strv);
$barv = mysql_fetch_object($resv);
$namabarang = $barv->namabarang;
$pdf->Cell(8, 5, $no, 1, 0, 'L', 1);
$pdf->Cell(42, 5, $bar->nopo, 1, 0, 'L', 1);
$pdf->Cell(28, 5, $kodebarang, 1, 0, 'C', 1);
$pdf->Cell(80, 5, $namabarang, 1, 0, 'L', 1);
$pdf->Cell(15, 5, $satuan, 1, 0, 'L', 1);
$pdf->Cell(18, 5, number_format($jumlah, 2, '.', ','), 1, 1, 'R', 1);
}
//footer================================
// $dtpenerima=namakaryawan($dbname,$conn,$penerima);
// $dtpengetahui=namakaryawan($dbname,$conn,$pengetahui);
$dptinY = $pdf->GetY();
$dptinX = $pdf->GetX();
$pdf->SetY($dptinY + 25);
$pdf->SetX($dptinX);
$pdf->SetFillColor(255, 255, 255);
$pdf->SetFont('Arial', 'B', 8);
if (substr($expend, 0, 1) == 'S') {
$dert = $_SESSION['lang']['expeditor'];
$duer = $optSupplier[$expend];
} else {
$dert = $_SESSION['lang']['dibawa'];
$duer = $optKary[$expend];
}
$pdf->Cell(50, $height, $_SESSION['lang']['penerima'] . ",", 0, 0, 'C', 0);
$pdf->Cell(70, $height, $dert . ",", 0, 0, 'C', 0);
$pdf->Cell(65, $height, $_SESSION['lang']['pengirim'] . ",", 0, 1, 'C', 0);
$pdf->ln(25);
$pdf->SetFont('Arial', 'U', 8);
示例12: PDF
$this->SetFont('Arial', 'I', 8);
$this->Cell(10, 10, 'Page ' . $this->PageNo() . " / {totalPages}", 0, 0, 'L');
}
}
//================================
$pdf = new PDF('L', 'pt', 'A4');
$pdf->AliasNbPages('{totalPages}');
$width = $pdf->w - $pdf->lMargin - $pdf->rMargin;
$height = 10;
$tnggi = $jmlHari * $height;
$pdf->AddPage();
// $pdf->SetFillColor(255,255,255);
// $pdf->SetFont('Arial','B',5);
$tinggiAkr = $pdf->GetY();
$ksamping = $pdf->GetX();
$pdf->SetY($tinggiAkr + 20);
$pdf->SetX($ksamping + 500);
$pdf->SetFont('Arial', 'B', 6);
$pdf->SetFillColor(255, 255, 255);
$pdf->Cell(65, $height, " ", R, 0, 'C', 1);
$pdf->SetFillColor(220, 220, 220);
$pdf->Cell(135, $height, $_SESSION['lang']['anggaran'], TLR, 0, 'C', 1);
$pdf->Cell(90, $height, $_SESSION['lang']['realisasi'], TLR, 1, 'C', 1);
$tinggiAkr = $pdf->GetY();
$ksamping = $pdf->GetX();
$pdf->SetY($tinggiAkr);
$pdf->SetX($ksamping + 500);
$pdf->SetFillColor(255, 255, 255);
$pdf->Cell(65, $height, " ", R, 0, 'C', 1);
$pdf->SetFillColor(220, 220, 220);
$pdf->Cell(45, $height, $_SESSION['lang']['setahun'], TBLR, 0, 'C', 1);
示例13: PDF
FREDERICK -> change Paper Orientation from Landscape to Portrait
$pdf=new PDF('L','mm','Legal'); */
$pdf = new PDF('P', 'mm', 'Legal');
//change arrangement of $getlgu & $getprov SEE: function setLGUinfo on line 19
//$pdf->setLGUinfo($getlgu[0],$getprov[0],$resulat[2]);
$pdf->setLGUinfo($getprov[0], $getlgu[0], 'Office of the Treasurer');
//---------------------------------------------------------------------
$pdf->AddPage();
$pdf->AliasNbPages();
$Y_Label_position = 50;
$Y_Table_Position = 55;
$resultpp = @mysql_query("select * from ebpls_buss_taxfeetype where taxfeetype='{$taxtype}'") or die(mysql_error());
$gettype = @mysql_fetch_array($resultpp);
//header
$pdf->SetFont('Arial', 'B', 6);
$pdf->SetY($Y_Label_position);
/*====================================================
FREDERICK -> change X Coordinate from 5 to 55:
/$pdf->SetX(5); */
$pdf->SetX(55);
//====================================================
$pdf->Cell(50, 5, $gettype[typedesc], 1, 0, 'C');
/*====================================================
FREDERICK -> removed this X Coordinate
/$pdf->SetX(55);
=====================================================*/
$pdf->Cell(55, 5, 'COLLECTION', 1, 1, 'C');
//second line
$totalamount = 0;
while ($getfees = mysql_fetch_array($result)) {
$Yx++;
示例14:
$pdf->ln(4);
$pdf->SetFont($fonttype, '', 10);
$pdf->Write(5, $request->GetVar('hotel_zip', 'session') . " " . $request->GetVar('hotel_city', 'session'));
// Headline
$pdf->SetXY(120, $y);
$pdf->SetFont($fonttype, 'B', 12);
$pdf->Write(5, "Meldeschein für Beherbergungsstätten");
$pdf->SetXY(120, $y + 5);
$pdf->SetFont($fonttype, '', 6);
$pdf->Write(3, "Rechtsgrundlage für die Erhebung der nachfolgend aufgeführten Daten sind");
$pdf->SetXY(120, $y + 8);
$pdf->Write(3, "§§23 und 24 des Meldegesetzes vom 11. April 1983 (GBI. S. 117)");
$pdf->SetFont($fonttype, 'B', 10);
$pdf->SetXY(10, 60);
$pdf->Write(5, "Tag der Ankunft");
$pdf->SetY(65);
$pdf->Write(5, "Tag der voraussichtlichen Abreise");
$pdf->SetY(70);
$pdf->Write(5, "Familienname");
$pdf->SetY(75);
$pdf->Write(5, "Vornamen");
$pdf->SetY(80);
$pdf->Write(5, "Geburtsdatum");
$pdf->SetY(85);
$pdf->Write(5, "Geburtsort");
$pdf->SetY(90);
$pdf->Write(5, "Staatsangehörigkeit");
$pdf->SetY(95);
$pdf->Write(5, "Ausweis");
$pdf->SetY(100);
$pdf->Write(5, "Ausstellende Behörde, Ausstellungsdatum");
示例15: PDF
//Llama al constructor de su clase Padre.
//Modificar aka segun la forma del papel del reporte
parent::__construct('P', 'mm', 'A4');
//parent::__construct('P','mm','Letter');
}
}
//Creación del objeto de la clase heredada
$pdf = new PDF();
$pdf->SetTopMargin(5.4);
$pdf->SetLeftMargin(1.5);
$pdf->AliasNbPages();
$pdf->SetFont('Arial', '', 9);
$pdf->AddPage();
$pdf->Ln();
//Construcción de la tabla a mostrar
$pdf->SetY(90);
$pdf->SetFont('Arial', 'b', 11);
$pdf->Text(23, 80, iconv('utf-8', 'cp1252', 'Item'));
$pdf->Text(35, 80, iconv('utf-8', 'cp1252', 'Productos'));
$pdf->Text(125, 80, 'Total Ventas');
$pdf->Text(167, 80, iconv('utf-8', 'cp1252', 'Fecha'));
$pdf->SetFont('Arial', '', 10);
$pdf->Line(20, 82, 190, 82);
$pdf->Line(20, 83, 190, 83);
$j = 0;
foreach ($fila as $key) {
$j = $j + 1;
$productos = iconv('utf-8', 'cp1252', $key[0]);
$TotalVentas = iconv('utf-8', 'cp1252', $key[1]);
$fecha = date_format(date_create($key[2]), 'd/m/Y');
$pdf->Text(25, $pdf->GetY(), $j);