コード例 #1
2
ファイル: pdf.lib.php プロジェクト: Samara94/dolibarr
/**
 *	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();
}
コード例 #2
0
 public static function generate($dbh, $appID, $method = 'I')
 {
     $data = self::get($dbh, $appID);
     //if (strlen($socialnumber) > 20) $socialnumber = $this->decrypt($socialnumber);
     $socialnumber = '';
     //Blank out social on forms per Maria 6/6/2013
     // initiate PDF
     $pdf = new PDF();
     $pdf->SetMargins(PDF_MARGIN_LEFT, 10, PDF_MARGIN_RIGHT);
     // add a page
     $pdf->AddPage();
     $pdf->SetFont("Helvetica", "", 11);
     $pdf->SetXY(33, 30);
     $pdf->Write(5, date('m/d/Y', strtotime($data['appDate'])));
     $pdf->SetXY(85, 30);
     $pdf->Write(5, $data['jobName']);
     $pdf->SetXY(30, 36);
     $pdf->Write(5, $data['lastname']);
     $pdf->SetXY(110, 36);
     $pdf->Write(5, $data['firstname']);
     $pdf->SetXY(170, 36);
     $pdf->Write(5, $data['middlename']);
     $pdf->SetXY(30, 62);
     $pdf->Write(5, $data['address']);
     $pdf->SetXY(105, 62);
     $pdf->Write(5, $data['city']);
     $pdf->SetXY(162, 62);
     $pdf->Write(5, $data['state']);
     $pdf->SetXY(187, 62);
     $pdf->Write(5, $data['zip']);
     $pdf->SetXY(70, 69);
     $pdf->Write(5, $data['years']);
     $pdf->SetXY(105, 69);
     $pdf->Write(5, $data['phone']);
     $pdf->SetXY(122, 76);
     $pdf->Write(5, $data['email']);
     $pdf->SetFont("Helvetica", "", 10);
     $highestx = 59 + $data['highestgrade'] * 5.4;
     if ($data['highestgrade'] > 8) {
         $highestx += 19;
     }
     if ($data['highestgrade'] > 12) {
         $highestx += 20;
     }
     $pdf->SetXY($highestx, 152);
     $pdf->Write(5, 'Highest');
     $pdf->SetXY(46, 175);
     $pdf->Write(5, $data['highschool']);
     $pdf->SetXY(46, 184);
     $pdf->Write(5, $data['highschoolloc']);
     $pdf->SetXY(101, 175);
     $pdf->Write(5, $data['highschoolyears']);
     $pdf->SetXY(129, 175);
     $pdf->Write(5, $data['coursesubject']);
     $pdf->SetXY(174.5, 175);
     $pdf->write(5, $data['coursesubjectgraduated'] == 'Yes' ? 'X' : '');
     $pdf->SetXY(174.5, 184);
     $pdf->write(5, $data['coursesubjectgraduated'] == 'GED' ? 'X' : '');
     $pdf->SetXY(46, 193);
     $pdf->Write(5, $data['collegeuniversity']);
     $pdf->SetXY(46, 202);
     $pdf->Write(5, $data['collegeuniversityloc']);
     $pdf->SetXY(101, 193);
     $pdf->Write(5, $data['collegeuniversityyearscompleted']);
     $pdf->SetXY(129, 193);
     $pdf->Write(5, $data['collegeuniversitycourse']);
     $pdf->SetXY(174.5, 191);
     $pdf->write(5, $data['collegegraduated'] == 'Yes' ? 'X' : '');
     $pdf->SetXY(184, 194);
     $pdf->Write(5, $data['collegegraduatedMonth']);
     $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') {
         $pdf->SetXY(140, $y + 73);
     } else {
         $pdf->SetXY(178, $y + 73);
     }
     $pdf->write(5, 'X');
     $y = 66.5;
     $pdf->SetXY(10, $y + 46);
     $pdf->Write(5, $data['companyname3']);
     $pdf->SetXY(10, $y + 55);
     $pdf->MultiCell(50, 10, $data['companyaddress3'], 0, 'L');
     $pdf->SetXY(10, $y + 64);
     $pdf->Write(5, $data['companyphone3']);
     $pdf->SetXY(10, $y + 72);
     $pdf->Write(5, $data['supervisorname3']);
     $pdf->SetXY(60, $y + 52);
     $pdf->MultiCell(80, 35, $data['responsibilities3'], 0, 'L');
     $pdf->SetXY(141, $y + 56);
     $pdf->MultiCell(60, 25, $data['reasonforleaving3'], 0, 'L');
     $pdf->SetXY(160, $y + 64);
     $pdf->write(5, "{$data['startwages3']} -> {$data['endedwages3']}");
     if ($data['maywecontact3'] == 'Yes') {
         $pdf->SetXY(140, $y + 73);
     } else {
         $pdf->SetXY(178, $y + 73);
     }
     $pdf->write(5, 'X');
     $pdf->SetXY(44, 265);
     $pdf->MultiCell(95, 10, "Signed Online as {$data['signature']} from {$data['ipAddress']}", 0, 'L');
     $pdf->SetXY(150, 265);
     $pdf->Write(5, $data['appDate']);
     $pdf->AddPage();
     $pdf->SetXY(26, 42);
     $pdf->Write(5, $data['lastname']);
     $pdf->SetXY(101, 42);
     $pdf->Write(5, $data['firstname']);
     $pdf->SetXY(172, 42);
     $pdf->Write(5, substr($data['middlename'], 0, 1));
     $pdf->SetXY(115, 50);
     $pdf->Write(5, $data['zip']);
     $pdf->SetXY(48, 57);
     $pdf->Write(5, $data['jobName']);
     $pdf->SetXY(48, 57);
     $pdf->Write(5, $data['jobName']);
     $filename = $data['firstname'] . '_' . $data['lastname'] . '_app.pdf';
     if ($method == 'F') {
         $pdf->Output(__DIR__ . '../../public_html/img/pdf/' . $filename, 'F');
         return 'img/pdf/' . $filename;
     } elseif ($method == 'I') {
         $pdf->Output(__DIR__ . '../../public_html/img/pdf/' . $filename, 'I');
         die;
     }
 }
コード例 #3
0
<?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);
コード例 #4
0
<?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
0
ファイル: index.php プロジェクト: vojtajina/sitellite
$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();
コード例 #6
0
 /**
  *   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);
 }
コード例 #7
0
 $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();
コード例 #8
0
$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');
コード例 #9
0
$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)) {
コード例 #10
0
$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]);
コード例 #11
0
$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);
コード例 #12
0
ファイル: embalajes.php プロジェクト: rigocastillo/TCU
<?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 . "%'";
}
コード例 #13
0
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);
コード例 #14
0
		}
	}
	
	//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);
	
コード例 #15
0
//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);
コード例 #16
0
 if (is_array($products[$catid])) {
     foreach ($products[$catid] as $pid => $p) {
         if ($ypos >= 165 || $no == 1 && $firstorder == false) {
             $pdf->AddPage('L');
             $ypos = 10;
             $pdf->setXY($cellstart, $ypos);
         }
         $firstbox_xpos = $cellstart + 1;
         $firstbox_text_size = $cellsize - 3;
         $pdf->Cell($cellsize, $cell_height_col, '', 1, 0);
         $pdf->drawProductsImage($cellstart + 10, $ypos + 1, $p['products_image']);
         $pdf->setXY($firstbox_xpos, $ypos + 3);
         $pdf->setFont('Arial', 'B', '10');
         //$pdf->Cell($cellsize, $cell_height, $no++ . ". " . (($header) ? $p['categories_name'] : ''));
         //wrap categories name to fit with box
         $pdf->MultiCell(40, 3, $no++ . ". " . ($header ? $p['categories_name'] : ''), 0, 'L');
         $header = false;
         $pdf->setFont('Arial', '', '10');
         $pdf->drawStar($p['stars'], $cellstart + 15, $ypos + 29);
         $pdf->setXY($firstbox_xpos, $ypos + 35);
         $link = 'http://' . $server . '/?open=product-detail&products_id=' . $p['products_id'];
         $pdf->SetFont('Arial', 'U');
         $pdf->SetTextColor(0, 0, 255);
         $pdf->Cell($firstbox_text_size, $cell_height, $pid . ' / ' . $p['products_model'], 0, 0, 'C', 0, $link);
         $pdf->SetFont('Arial', '');
         $pdf->SetTextColor(0, 0, 0);
         $pdf->setXY($firstbox_xpos, $ypos + 40);
         $pdf->Cell($firstbox_text_size, $cell_height, 'Price: ' . displayCurrency('EUR', $p['products_price'], false), 0, 0, 'C');
         //$pdf->Cell($cellsize, $cell_height, 'Price/Margin: '.displayCurrency('EUR', $p['products_price'], false).' / '.$p['fmargin']);
         $pdf->setXY($firstbox_xpos, $ypos + 45);
         $pdf->Cell($firstbox_text_size, $cell_height, 'Margin: ' . $p['fmargin'], 0, 0, 'C');
コード例 #17
0
$pdf->page_height = 297;
$pdf->font_size = 11;
$pdf->line_height = 6;
$pdf->AddPage();
$pdf->setFont('Arial', '', $pdf->font_size);
//PAGING SETTING
$firstpagecount = 41;
$nextpagecount = 54;
//HEADER RIGHT
$head_width = 70;
$xpos = $pdf->left_margin + 110;
$ypos = $pdf->top_margin;
$line_height = 9;
$pdf->setFont('Arial', 'B', '13');
$pdf->SetXY($xpos, $ypos);
$pdf->MultiCell($head_width, $line_height, 'Invoice', 1);
//HEADER LEFT
$head_width = 100;
$xpos = $pdf->left_margin;
$ypos = $pdf->top_margin;
$line_height = 4;
$address1 = array();
$address1[] = JNG_ADDRESS_NAME;
$address1[] = EMAIL_NAME_PETERN;
$address1[] = JNG_ADDRESS_STREET;
$address1[] = JNG_ADDRESS_ZIPCODE . ' ' . JNG_ADDRESS_CITY;
$pdf->setFont('Arial', '', '8');
$pdf->SetXY($xpos, $ypos);
$pdf->MultiCell($head_width, $line_height, implode("\n", $address1));
$pdf->setFont('Arial', 'B', '11');
$ypos += 20;
コード例 #18
0
ファイル: articulos.php プロジェクト: joanlaga/MaxCodekaRev
//require('mysql_table.php');
require_once 'fpdf.php';
include "comunes.php";
require_once OBIB_CONF . "conectar.php";
//require_once($_SERVER['DOCUMENT_ROOT']."/git/maxcodekarev/configuraciones/conectar.php");
$pdf = new PDF();
$pdf->Open();
$pdf->AddPage();
// Cabecera
$pdf->Header('../images/logo.jpg', 10, 8, 33, 33);
//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 Articulos", 0, "C", 0);
$pdf->Ln();
//Restauracin de colores y fuentes
$pdf->SetFillColor(224, 235, 255);
$pdf->SetTextColor(0);
$pdf->SetFont('Arial', 'B', 7);
/*


echo "</pre>";
print_r($_REQUEST);
echo "</pre>";

GET 
codarticulo 
referencia
コード例 #19
0
$ano = date('Y');
// GERANDO O PDF:
$pdf = new PDF('P', 'mm', 'A4');
//CRIA UM NOVO ARQUIVO PDF NO TAMANHO A4
$pdf->AliasNbPages();
$pdf->AddPage();
$x = 20;
$l = 5;
//DEFINE A ALTURA DA LINHA
$pdf->SetXY($x, 20);
// SetXY - DEFINE O X (largura) E O Y (altura) NA PÁGINA
$pdf->SetX($x);
$pdf->SetFont('Arial', 'B', 14);
$pdf->Cell(23, 5, utf8_decode("EVENTO:"), 0, 0, 'L');
$pdf->SetFont('Arial', '', 14);
$pdf->MultiCell(155, $l, utf8_decode($Objeto));
$pdf->Ln();
$pdf->Ln();
$pdf->SetX($x);
$pdf->SetFont('Arial', 'B', 10);
$pdf->Cell(29, $l, 'Tipo de evento:', 0, 0, 'L');
$pdf->SetFont('Arial', '', 10);
$pdf->MultiCell(120, $l, utf8_decode($tipoEvento));
$pdf->SetX($x);
$pdf->SetFont('Arial', 'B', 10);
$pdf->Cell(30, $l, 'Projeto Especial:', 0, 0, 'L');
$pdf->SetFont('Arial', '', 10);
$pdf->MultiCell(120, $l, utf8_decode($projetoEspecial));
$pdf->SetX($x);
$pdf->SetFont('Arial', 'B', 10);
$pdf->Cell(15, $l, 'Projeto:', 0, 0, 'L');
コード例 #20
0
ファイル: ImprimirCV.php プロジェクト: kailIII/angyTours
$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);
$pdf->Cell(160, 10, utf8_decode("Pasajero Titular : ") . $Nombre, 'LR', 1);
$pdf->SetX(20);
$pdf->Cell(160, 10, utf8_decode("Segundo Pasajero : ") . $acompanante, 'LR', 1);
$pdf->SetX(20);
$pdf->Cell(160, 10, utf8_decode("Adultos : ") . $adultos, 'LR', 1);
$pdf->SetX(20);
$pdf->Cell(160, 10, utf8_decode("Menores : ") . $menores, 'LR', 1);
$pdf->SetX(20);
$pdf->Cell(80, 8, utf8_decode("Fecha In : ") . $fechaLLegada, 'LRT', 0);
$pdf->Cell(80, 8, utf8_decode("Check In : 12:00 PM"), 'LRT', 1);
$pdf->SetX(20);
$pdf->Cell(80, 8, utf8_decode("Fecha Out : ") . $fechaSalida, 'LRB', 0);
$pdf->Cell(80, 8, utf8_decode("Check Out : 12:00 PM"), 'LRB', 1);
$pdf->SetX(20);
$pdf->Cell(80, 10, utf8_decode("Clave Confirmacion : ") . $clave, 1, 0, 'L');
$pdf->MultiCell(80, 10, utf8_decode("Comfirmado por : ") . $Plan, 1, 'L');
$pdf->SetX(20);
$pdf->MultiCell(160, 10, utf8_decode("Observaciones : ") . utf8_decode($otras), 1, 'L');
$pdf->SetX(20);
$pdf->Cell(160, 14, utf8_decode("Le atendio : ") . $atencion, 1, 'C');
$pdf->SetY(225);
$pdf->SetX(20);
$pdf->SetFont('Arial', 'B', 4);
$pdf->MultiCell(160, 3, utf8_decode($clasula), 0, 'J');
$pdf->Output('Venta:' . $foliovta . ' Hotel:' . $nombreHotel . ' Cliente:' . $Nombre . '.pdf', 'D');
cerrar($conexion);
コード例 #21
0
$pdf->SetXY($x, 37);
// SetXY - DEFINE O X (largura) E O Y (altura) NA PÁGINA
$pdf->SetX($x);
$pdf->SetFont('Arial', '', 10);
$pdf->Cell(10, 5, '(A)', 0, 0, 'L');
$pdf->SetFont('Arial', 'B', 12);
$pdf->Cell(170, 5, 'CONTRATADO', 0, 1, 'C');
$pdf->SetX($x);
$pdf->SetFont('Arial', 'I', 10);
$pdf->Cell(10, 10, utf8_decode('(Quando se tratar de grupo, o líder do grupo)'), 0, 0, 'L');
$pdf->Ln();
$pdf->SetX($x);
$pdf->SetFont('Arial', 'B', 10);
$pdf->Cell(12, $l, 'Nome:', 0, 0, 'L');
$pdf->SetFont('Arial', '', 10);
$pdf->MultiCell(168, $l, utf8_decode($exNome));
$pdf->SetX($x);
$pdf->SetFont('Arial', 'B', 10);
$pdf->Cell(28, $l, utf8_decode('Nome Artístico:'), 0, 0, 'L');
$pdf->SetFont('Arial', '', 10);
$pdf->MultiCell(152, $l, utf8_decode($exNomeArtistico));
$pdf->SetX($x);
$pdf->SetFont('Arial', 'B', 10);
$pdf->Cell(23, $l, utf8_decode('Estado Civil:'), 0, 0, 'L');
$pdf->SetFont('Arial', '', 10);
$pdf->Cell(65, $l, utf8_decode($exEstadoCivil), 0, 0, 'L');
$pdf->SetFont('Arial', 'B', 10);
$pdf->Cell(28, $l, utf8_decode('Nacionalidade:'), 0, 0, 'L');
$pdf->SetFont('Arial', '', 10);
$pdf->Cell(17, $l, utf8_decode($exNacionalidade), 0, 1, 'L');
$pdf->SetX($x);
コード例 #22
0
    if ($pdf->GetY() > $yy0) {
        $pdf->AddPage();
        $pdf->SetFont('Times', '', 7);
        $pdf->Cell(10, 3, ' ', 0, 0);
        $pdf->Cell(175, 3, utf8_decode(JText::_('WRITTEN')) . ' ' . utf8_decode(JText::_('ON_DAY')) . ' ' . utf8_decode(JHTML::_('date', $now, JText::_('%d. %B %Y ,  %H %M'))), 0, 1, 'R');
        $pdf->SetFont('Times', '', 14);
        $pdf->Cell(10, 15, ' ', 0, 0);
        $pdf->Cell(80, 15, utf8_decode($liga[0]->name) . " " . utf8_decode($saison[0]->name), 0, 1, 'L');
        $pdf->Ln();
    }
    $pdf->SetFont('Times', '', $font + 1);
    $pdf->Cell(10, $zelle, ' ', 0, 0, 'L');
    $pdf->Cell(150, $zelle, JText::_('NOTICE') . ' :', 0, 1, 'B');
    $pdf->SetFont('Times', '', $font);
    $pdf->Cell(15, $zelle, ' ', 0, 0, 'L');
    $pdf->MultiCell(150, $zelle, utf8_decode($liga[0]->bemerkungen), 0, 'L', 0);
    $pdf->Ln();
}
if (isset($liga[0]->sl)) {
    $yy1 = 320;
    $yy0 = $yy1 - 54;
    if ($pdf->GetY() > $yy0) {
        $pdf->AddPage();
        $pdf->SetFont('Times', '', 7);
        $pdf->Cell(10, 3, ' ', 0, 0);
        $pdf->Cell(175, 3, utf8_decode(JText::_('WRITTEN')) . ' ' . utf8_decode(JText::_('ON_DAY')) . ' ' . utf8_decode(JHTML::_('date', $now, JText::_('%d. %B %Y ,  %H %M'))), 0, 1, 'R');
        $pdf->SetFont('Times', '', 14);
        $pdf->Cell(10, 15, ' ', 0, 0);
        $pdf->Cell(80, 15, utf8_decode($liga[0]->name) . " " . utf8_decode($saison[0]->name), 0, 1, 'L');
        $pdf->Ln();
    }
コード例 #23
0
ファイル: respdf.php プロジェクト: AntBean/alienvault-ossim
 $Eriskcount = 0;
 $riskArray = array();
 $colorarray = array();
 while (list($riskcount, $risk, $hostIP, $ctx) = $result->fields) {
     if ($ecount > 0) {
         $Eriskcount += $ecount;
         $riskcount -= $ecount;
     }
     $riskArray[getrisk($risk)] = $riskcount;
     $colorarray[$index] = getriskcolor($risk);
     $index++;
     $result->MoveNext();
 }
 if ($Eriskcount > 0) {
     $risk = 8;
     $pdf->MultiCell(70, 6, "" . getrisk($risk) . " : {$Eriskcount}", 0, 0, 'C');
     $riskArray[getrisk($risk)] = $Eriskcount;
     $colorarray[$index] = getriskcolor($risk);
 }
 $pdf->Ln();
 $pdf->Ln();
 //$pdf->SetXY(85, 53); #$valY);
 $pdf->SetXY(85, 47);
 #$valY);
 $pdf->PieChart(140, 40, $riskArray, '%l', $colorarray);
 $pdf->SetXY($valX, $valY + 33);
 //Host-Vulnerability Summary
 $pdf->Ln();
 $pdf->Ln();
 $pdf->Ln();
 $total_number2 = _("Total number of vulnerabilities identified per system");
コード例 #24
0
$pdf->Cell(60, 5, 'Angytours', 0, 2, 'C');
$pdf->Cell(60, 5, 'Calle 59J # 565 X 110 y 112 Col Bojorquez', 0, 2, 'C');
$pdf->Cell(60, 5, 'Tel: (999)9-12-28-95 | Cel: (044)99-92-44-54-14', 0, 2, 'C');
$pdf->Cell(60, 5, 'Correo: angeviajes@hotmail.com', 0, 2, 'C');
$pdf->Cell(60, 5, 'RFC: PELA620129L36', 0, 2, 'C');
$pdf->SetFont('Arial', '', 10);
$pdf->SetY(35);
$pdf->SetX(140);
$pdf->Cell(40, 8, utf8_decode("Fecha: ") . 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(130, 8, utf8_decode("Cliente : ") . utf8_decode($nombre), 1, 0);
$pdf->Cell(30, 8, utf8_decode("Folio : ") . $FolioGrupo, 1, 1);
$pdf->SetX(20);
$pdf->Cell(60, 8, utf8_decode("Cantidad : ") . $CostoTotal, 1, 0, 'L');
$pdf->MultiCell(100, 8, utf8_decode("Importe Letras : ") . $CantLetras, 1, 'L');
$pdf->SetX(20);
$pdf->MultiCell(160, 5, utf8_decode("Descripción : ") . utf8_decode($Descripcion), 1, 'L');
$pdf->SetX(20);
$pdf->Cell(100, 14, utf8_decode("Le atendio : ") . utf8_decode($nombreU), 1, 0);
$pdf->Cell(60, 14, utf8_decode("Firma : "), 1, 2);
///Segundo Cupon
$pdf->Image('../imagenes/logo.jpg', 40, 140, 32, 24);
// Arial bold 15
$pdf->SetFont('Arial', 'B', 8);
// Movernos a la derecha
$pdf->SetY(140);
$pdf->Cell(80);
// Título
$pdf->Cell(60, 5, 'Angytours', 0, 2, 'C');
$pdf->Cell(60, 5, 'Calle 59J # 565 X 110 y 112 Col Bojorquez', 0, 2, 'C');
コード例 #25
0
ファイル: prjformativo.php プロジェクト: andreazurli/stage-ng
 /*	$pdf->Cell(40,12,'Applicazione competenze ',1,0,'R',1);
 		$pdf->MultiCell(135,4,' '.utf8_decode($row['STA_Compito']),1,1);*/
 $pdf->Ln(3);
 $pdf->SetFont('abac', '', 11);
 $pdf->Cell(0, 8, "Polizze assicurative", 0, 2);
 $pdf->SetFont('abalc', '', 9);
 $pdf->Rect($pdf->GetX() + 6, $pdf->GetY(), 169, 8);
 $pdf->Cell(6);
 $pdf->Cell(0, 4, "INAIL Codice PAT n. " . $rsmeucci['INAIL_Pat'] . " - Infortuni sul lavoro Polizza n. " . $rsmeucci['ASS_Infortuni'], 0, 2);
 $pdf->Cell(0, 4, "Responsabilità civile Polizza n. " . $rsmeucci['ASS_RespCivile'] . " (Compagnia assicurativa " . $rsmeucci['ASS_Compagnia'] . ")");
 $pdf->Ln(5);
 $pdf->SetFont('abac', '', 11);
 $pdf->Cell(0, 8, "Obiettivi e modalità del Tirocinio", 0, 2);
 $pdf->SetFont('abalc', '', 9);
 $pdf->Cell(6);
 $pdf->MultiCell(169, 4, "Orientamento: Prendere coscienza delle abilità specifiche necessarie all'inserimento in un settore produttivo e delle possibilità di autorealizzazione in un ambiente diverso da quello familiare e scolastico.", 'TLR', 2);
 $pdf->Cell(6);
 $pdf->MultiCell(169, 4, "Socializzazione: Formare o potenziare le abilità comunicative e rafforzare determinate abilità cognitive, sociali e professionali; sviluppare le capacità di adattamento al fine di assumere atteggiamenti idonei rispetto all'ambiente operativo in cui gli alunni vengono inseriti.", 'LR', 2);
 $pdf->Cell(6);
 $pdf->MultiCell(169, 4, "Sviluppo di abilità: Acquisire la capacità di rendersi autonomo nello svolgere i compiti assegnati; Sviluppare precisione ed accuratezza nell'effettuare il lavoro assegnato.", 'LR', 2);
 $pdf->Cell(6);
 $pdf->MultiCell(169, 4, "Comportamento: Educazione al rispetto degli orari; sviluppare un corretto rapporto con gli altri dipendenti; capire l'importanza della cura delle attrezzature.", 'LR', 2);
 $pdf->Cell(6);
 $pdf->MultiCell(169, 4, "Modalità di verifica: Il Tutor Scolastico visiterà l'azienda al fine di verificare il comportamento dello Studente nell'espletare le mansioni previste; a fine stage lo Studente relazionerà sul lavoro svolto; lo Studente annoterà giornalmente l'orario di lavoro effettuato su un apposito Foglio Firma controfirmato dal Tutor Aziendale; il Tutor Aziendale riempirà, a fine stage, la prevista Scheda di Valutazione; il Tutor Scolastico riassumerà con un voto ed un giudizio le suddette valutazioni.", 'LRB', 2);
 $pdf->Ln(3);
 $pdf->SetFont('abac', '', 9);
 $pdf->MultiCell(175, 4, "Il tirocinante ha sostenuto il corso di base sulla Sicurezza (8 ore).", 0, 2);
 $pdf->Ln(1);
 $pdf->SetFont('abac', '', 9);
 $pdf->MultiCell(175, 4, "I sottoscriventi dichiarano di aver preso completa visione della Convenzione stipulata fra l'Istituto Tecnico Industriale Statale \"Antonio Meucci\" di Firenze e l'Azienda ospitante.", 0, 2);
 $pdf->Ln(1);
コード例 #26
0
 $i++;
 if ($no != 1) {
     $pdf->SetY($akhirY);
 }
 $akhirY = $pdf->GetY();
 if ($akhirY >= 260) {
     $pdf->AddPage();
     $akhirY = $pdf->GetY();
 }
 //no
 $pdf->Cell(8, 4, $no, 0, 0, 'L', 0);
 $pdf->SetX($pdf->GetX());
 $posisiY = round($pdf->GetY());
 $pdf->Cell(12, 5, substr($bar->kodebarang, 0, 3), 0, 0, 'C', 0);
 //nama barang
 $pdf->MultiCell(60, 5, " " . $namabarang . "\n" . $spek . $bar->catatan, 0, 'J', 0);
 $akhirY = $pdf->GetY();
 //naik lagi kursornya
 $pdf->SetY($posisiY);
 $pdf->SetX($pdf->GetX() + 82);
 //no pp + pt + jumlah + satuan + harga + total
 $pdf->Cell(12, 5, $nopp, 0, 0, 'C', 0);
 $pdf->Cell(12, 5, $unit, 0, 0, 'C', 0);
 $pdf->Cell(14, 5, number_format($jumlah, 2, '.', ','), 0, 0, 'R', 0);
 $pdf->Cell(14, 5, $bar->satuan, 0, 0, 'C', 0);
 if ($bar->matauang == 'IDR') {
     $pdf->Cell(29, 5, $bar->matauang . " " . number_format($harga_sat, 2, '.', ','), 0, 0, 'R', 0);
     $pdf->Cell(26, 5, number_format($total, 2, '.', ','), 0, 1, 'R', 0);
 } else {
     $pdf->Cell(29, 5, $bar->matauang . " " . number_format($harga_sat, 3, '.', ','), 0, 0, 'R', 0);
     $pdf->Cell(26, 5, number_format($total, 3, '.', ','), 0, 1, 'R', 0);
コード例 #27
0
ファイル: pdf.php プロジェクト: raalveco/Escuela
/**
 * Genera un reporte en PDF
 *
 * @param array $result
 * @param array $sumArray
 * @param string $title
 * @param array $weightArray
 * @param array $headerArray
 */
function pdf($result, $sumArray, $title, $weightArray, $headerArray)
{
    $config = Config::read('config');
    $active_app = Router::get_application();
    //Orientación
    if ($sumArray > 200) {
        $orientation = 'L';
    } else {
        $orientation = 'P';
    }
    $numRows = 140;
    //Tipo de Papel
    if ($sumArray > 250) {
        $paper = 'legal';
    } else {
        $paper = 'letter';
    }
    if ($paper == 'letter' && $orientation == 'P') {
        $widthPage = 220;
        $numRows = 42;
    }
    if ($paper == 'legal' && $orientation == 'L') {
        $widthPage = 355;
        $numRows = 30;
    }
    if ($paper == 'letter' && $orientation == 'L') {
        $widthPage = 270;
        $numRows = 30;
    }
    //Crear Documento PDF
    $pdf = new PDF($orientation, 'mm', $paper);
    $pdf->Open();
    $pdf->AddPage();
    //Nombre del Listado
    $pdf->SetFillColor(255, 255, 255);
    $pdf->AddFont('Verdana', '', 'verdana.php');
    $pdf->SetFont('Verdana', '', 14);
    $pdf->SetY(20);
    $pdf->SetX(0);
    $pdf->Ln();
    if ($config->{$active_app}->name) {
        $pdf->MultiCell(0, 6, strtoupper($config->{$active_app}->name), 0, "C", 0);
    }
    $pdf->MultiCell(0, 6, "REPORTE DE " . strtoupper($title), 0, "C", 0);
    $pdf->SetFont('Verdana', '', 12);
    if (isset($_SESSION['fecsis'])) {
        $pdf->MultiCell(0, 6, "FECHA " . date("Y-m-d"), 0, "C", 0);
    }
    $pdf->Ln();
    //Colores, ancho de línea y fuente en negrita
    $pdf->SetFillColor(0xf2, 0xf2, 0xf2);
    $pdf->SetTextColor(0);
    $pdf->SetDrawColor(0, 0, 0);
    $pdf->SetLineWidth(0.2);
    $pdf->SetFont('Arial', 'B', 10);
    if ($weightArray[0] < 11) {
        $weightArray[0] = 11;
    }
    //Parametros del Reporte
    $pos = floor($widthPage / 2 - $sumArray / 2);
    $pdf->SetX($pos);
    for ($i = 0; $i <= count($headerArray) - 1; $i++) {
        $pdf->Cell($weightArray[$i], 7, $headerArray[$i], 1, 0, 'C', 1);
    }
    $pdf->Ln();
    //Restauración de colores y fuentes
    $pdf->SetFillColor(224, 235, 255);
    $pdf->SetTextColor(0);
    $pdf->SetFont('Arial', 'B', 7);
    //print_r($weightArray);
    //Buscamos y listamos
    $n = 1;
    $p = 1;
    $t = 0;
    foreach ($result as $row) {
        //$pdf->Cell(Ancho, Alto, contenido, ?, ?, Align)
        if ($n > $numRows || $p == 1 && $n > $numRows - 3) {
            $pdf->AddPage($orientation);
            $pdf->SetY(30);
            $pdf->SetX($pos);
            $pdf->SetFillColor(0xf2, 0xf2, 0xf2);
            $pdf->SetTextColor(0);
            $pdf->SetDrawColor(0, 0, 0);
            $pdf->SetLineWidth(0.2);
            $pdf->SetFont('Arial', 'B', 10);
            for ($i = 0; $i < count($headerArray); $i++) {
                $pdf->Cell($weightArray[$i], 7, $headerArray[$i], 1, 0, 'C', 1);
            }
            $pdf->Ln();
            $pdf->SetFillColor(224, 235, 255);
            $pdf->SetTextColor(0);
            $pdf->SetFont('Arial', 'B', 7);
            $n = 1;
            $p++;
        }
        $pdf->SetX($pos);
        for ($i = 0; $i <= count($row) - 1; $i++) {
            if (is_numeric($row[$i])) {
                $pdf->Cell($weightArray[$i], 5, trim($row[$i]), 'LRTB', 0, 'C');
            } else {
                $pdf->Cell($weightArray[$i], 5, trim($row[$i]), 'LRTB', 0, 'L');
            }
        }
        $n++;
        $t++;
        $pdf->Ln();
    }
    $pdf->SetX($pos);
    $pdf->SetFont('Arial', 'B', 7);
    $pdf->SetFillColor(0xf2, 0xf2, 0xf2);
    $pdf->Cell($weightArray[0], 5, "TOTAL", 'LRTB', 0, 'R');
    $pdf->Cell($weightArray[1], 5, $t, 'LRTB', 0, 'L');
    /*print "<div style='background: url(img/bg2.jpg) #F2f2f2;border:1px solid #c0c0c0'>
    	<table><td><img src='img/information.gif' width='64' height='64'/></td><td>";
    	print "Papel: $paper<br>";
    	print "Orientación: $orientation<br>";
    	print "Ancho Página: $widthPage mm<br>";
    	print "Número Páginas: $p<br>";
    	print "</td></table></div><br>";*/
    $file = md5(uniqid());
    $pdf->Output(CORE_PATH . 'public/temp/' . $file . ".pdf", 'F');
    if (isset($raw_output)) {
        print "<script type='text/javascript'> window.open('" . KUMBIA_PATH . "temp/" . $file . ".pdf', null); </script>";
    } else {
        Generator::forms_print("<script type='text/javascript'> window.open('" . KUMBIA_PATH . "temp/" . $file . ".pdf', null); </script>");
    }
}
コード例 #28
0
$pdf->SetX(135);
$pdf->SetFont('Arial', 'B', 9);
$pdf->Cell(65, 6, 'Celular:', 1, 0, 'L');
$pdf->SetFont('Arial', 'I', 9);
$pdf->SetX(149);
$pdf->Cell(0, 6, $dados_conta['celular'], 0, 0, 'L');
//Nova Linha
$pdf->ln();
$pdf->SetFont('Arial', 'B', 9);
$pdf->Cell(95, 6, 'E-mail:', 1, 0, 'L');
$pdf->SetFont('Arial', 'I', 9);
$pdf->SetX(37);
$pdf->Cell(0, 6, $dados_conta['email'], 0, 0, 'L');
$pdf->SetX(105);
$pdf->SetFont('Arial', 'B', 9);
$pdf->Cell(0, 6, 'Contato', 1, 0, 'L');
$pdf->SetFont('Arial', 'I', 9);
$pdf->SetX(120);
$pdf->Cell(0, 6, $dados_conta['contato'], 0, 0, 'L');
//Nova linha
$pdf->ln();
$pdf->SetFont('Arial', 'B', 10);
$pdf->SetFillColor(178, 178, 178);
$pdf->Cell(0, 6, 'Observações', 1, 0, 'C', 1);
$pdf->ln();
$pdf->SetFont('Arial', 'I', 10);
$pdf->MultiCell(0, 4, $dados_conta['observacoes'], 1);
//Gera o PDF
$pdf->Output();
?>
                                                      
コード例 #29
0
 $pdf->AddPage();
 $pdf->SetDisplayMode('fullpage');
 $pdf->SetMargins(20, 20, 20);
 $pdf->SetFont('Arial', 'BU', 14);
 $pdf->SetTextColor(70, 125, 25);
 $pdf->Cell(0, 10, 'FICHA DE CHECK DOMICILIARIO', 0, 1, 'C');
 $pdf->Ln(2);
 $pdf->SetTextColor(0, 0, 0);
 $pdf->SetFont('Arial', 'B', 12);
 $pdf->Cell(55, 7, 'NOMBRES Y APELLIDOS', 1, 0, 'L');
 $pdf->SetFont('Arial', '', 12);
 $pdf->Cell(0, 7, $nombre, 1, 1, 'C');
 $pdf->SetFont('Arial', 'B', 12);
 $pdf->Cell(55, 7, 'DIRECCION', 1, 0, 'L');
 $pdf->SetFont('Arial', '', 12);
 $pdf->MultiCell(0, 7, $domicilio, 1, 'C');
 //$pdf->Ln(2);
 //$pdf->Image('../files/images_dni/imagen1.png',40,null,0,130);
 $pdf->Ln(2);
 $pdf->SetFont('Arial', 'B', 12);
 $pdf->Cell(35);
 $pdf->Cell(33, 7, 'DOMICILIADO', 0, 0, 'L');
 $pdf->SetFont('Arial', '', 16);
 $pdf->Cell(6, 7, $txtdomiciliadoSI, 1, 0, 'C');
 $pdf->SetFont('Arial', 'B', 12);
 $pdf->Cell(5);
 $pdf->Cell(40, 7, 'NO DOMICILIADO', 0, 0, 'L');
 $pdf->SetFont('Arial', '', 16);
 $pdf->Cell(6, 7, $txtdomiciliadoNO, 1, 1, 'C');
 $pdf->Ln(2);
 $pdf->SetFont('Arial', 'BU', 12);
コード例 #30
-1
 /**
  *   Show table for lines
  *
  *   @param		PDF			$pdf     		Object PDF
  *   @param		string		$tab_top		Top position of table
  *   @param		string		$tab_height		Height of table (rectangle)
  *   @param		int			$nexY			Y (not used)
  *   @param		Translate	$outputlangs	Langs object
  *   @param		int			$hidetop		1=Hide top bar of array and title, 0=Hide nothing, -1=Hide only title
  *   @param		int			$hidebottom		Hide bottom bar of array
  *   @param		string		$currency		Currency code
  *   @return	void
  */
 function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $outputlangs, $hidetop = 0, $hidebottom = 0, $currency = '')
 {
     global $conf;
     // Force to disable hidetop and hidebottom
     $hidebottom = 0;
     if ($hidetop) {
         $hidetop = -1;
     }
     $currency = !empty($currency) ? $currency : $conf->currency;
     $default_font_size = pdf_getPDFFontSize($outputlangs);
     // Amount in (at tab_top - 1)
     $pdf->SetTextColor(0, 0, 0);
     $pdf->SetFont('', '', $default_font_size - 2);
     if (empty($hidetop)) {
         $titre = $outputlangs->transnoentities("AmountInCurrency", $outputlangs->transnoentitiesnoconv("Currency" . $currency));
         $pdf->SetXY($this->page_largeur - $this->marge_droite - ($pdf->GetStringWidth($titre) + 3), $tab_top - 4);
         $pdf->MultiCell($pdf->GetStringWidth($titre) + 3, 2, $titre);
         //$conf->global->MAIN_PDF_TITLE_BACKGROUND_COLOR='230,230,230';
         if (!empty($conf->global->MAIN_PDF_TITLE_BACKGROUND_COLOR)) {
             $pdf->Rect($this->marge_gauche, $tab_top, $this->page_largeur - $this->marge_droite - $this->marge_gauche, 5, 'F', null, explode(',', $conf->global->MAIN_PDF_TITLE_BACKGROUND_COLOR));
         }
     }
     $pdf->SetDrawColor(128, 128, 128);
     $pdf->SetFont('', '', $default_font_size - 1);
     // Output Rect
     $this->printRect($pdf, $this->marge_gauche, $tab_top, $this->page_largeur - $this->marge_gauche - $this->marge_droite, $tab_height, $hidetop, $hidebottom);
     // Rect prend une longueur en 3eme param et 4eme param
     if (empty($hidetop)) {
         $pdf->line($this->marge_gauche, $tab_top + 5, $this->page_largeur - $this->marge_droite, $tab_top + 5);
         // line prend une position y en 2eme param et 4eme param
         $pdf->SetXY($this->posxdesc - 1, $tab_top + 1);
         $pdf->MultiCell(108, 2, $outputlangs->transnoentities("Designation"), '', 'L');
     }
     if (!empty($conf->global->MAIN_GENERATE_INVOICES_WITH_PICTURE)) {
         $pdf->line($this->posxpicture - 1, $tab_top, $this->posxpicture - 1, $tab_top + $tab_height);
         if (empty($hidetop)) {
             //$pdf->SetXY($this->posxpicture-1, $tab_top+1);
             //$pdf->MultiCell($this->posxtva-$this->posxpicture-1,2, $outputlangs->transnoentities("Photo"),'','C');
         }
     }
     if (empty($conf->global->MAIN_GENERATE_DOCUMENTS_WITHOUT_VAT)) {
         $pdf->line($this->posxtva - 1, $tab_top, $this->posxtva - 1, $tab_top + $tab_height);
         if (empty($hidetop)) {
             $pdf->SetXY($this->posxtva - 3, $tab_top + 1);
             $pdf->MultiCell($this->posxup - $this->posxtva + 3, 2, $outputlangs->transnoentities("VAT"), '', 'C');
         }
     }
     $pdf->line($this->posxup - 1, $tab_top, $this->posxup - 1, $tab_top + $tab_height);
     if (empty($hidetop)) {
         $pdf->SetXY($this->posxup - 1, $tab_top + 1);
         $pdf->MultiCell($this->posxqty - $this->posxup - 1, 2, $outputlangs->transnoentities("PriceUHT"), '', 'C');
     }
     $pdf->line($this->posxqty - 1, $tab_top, $this->posxqty - 1, $tab_top + $tab_height);
     if (empty($hidetop)) {
         $pdf->SetXY($this->posxqty - 1, $tab_top + 1);
         if ($conf->global->PRODUCT_USE_UNITS) {
             $pdf->MultiCell($this->posxunit - $this->posxqty - 1, 2, $outputlangs->transnoentities("Qty"), '', 'C');
         } else {
             $pdf->MultiCell($this->posxdiscount - $this->posxqty - 1, 2, $outputlangs->transnoentities("Qty"), '', 'C');
         }
     }
     if ($conf->global->PRODUCT_USE_UNITS) {
         $pdf->line($this->posxunit - 1, $tab_top, $this->posxunit - 1, $tab_top + $tab_height);
         if (empty($hidetop)) {
             $pdf->SetXY($this->posxunit - 1, $tab_top + 1);
             $pdf->MultiCell($this->posxdiscount - $this->posxunit - 1, 2, $outputlangs->transnoentities("Unit"), '', 'C');
         }
     }
     $pdf->line($this->posxdiscount - 1, $tab_top, $this->posxdiscount - 1, $tab_top + $tab_height);
     if (empty($hidetop)) {
         if ($this->atleastonediscount) {
             $pdf->SetXY($this->posxdiscount - 1, $tab_top + 1);
             $pdf->MultiCell($this->postotalht - $this->posxdiscount + 1, 2, $outputlangs->transnoentities("ReductionShort"), '', 'C');
         }
     }
     if ($this->atleastonediscount) {
         $pdf->line($this->postotalht, $tab_top, $this->postotalht, $tab_top + $tab_height);
     }
     if (empty($hidetop)) {
         $pdf->SetXY($this->postotalht - 1, $tab_top + 1);
         $pdf->MultiCell(30, 2, $outputlangs->transnoentities("TotalHT"), '', 'C');
     }
 }