update
This commit is contained in:
45
application/libraries/PDF.php
Normal file
45
application/libraries/PDF.php
Normal file
@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
if(!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
require_once FCPATH.'fpdf/fpdf.php';
|
||||
|
||||
|
||||
class PDF extends FPDF {
|
||||
|
||||
function __construct() {
|
||||
parent::__construct();
|
||||
|
||||
|
||||
}
|
||||
|
||||
//Page header
|
||||
public function Header() {
|
||||
$mem_adress=utf8_decode("260-414, Boul. Sir Wilfrid-Laurier,\nMont Saint-Hilaire, Québec, J3H 3N9");
|
||||
$mem_adress2=utf8_decode("Tél.: 450.464.6711 - 800.461.0754\nwww.expresstours.ca - courriel: info@expresstours.ca");
|
||||
|
||||
$this->Image(FCPATH.'img/pdf/logoxpress.jpg',10,6,60);
|
||||
// Police Arial gras 15
|
||||
$this->SetFont('Arial','',8);
|
||||
$this->Ln(4);
|
||||
// Décalage à droite
|
||||
$this->Cell(120);
|
||||
// Titre
|
||||
$this->MultiCell(100,3,$mem_adress);
|
||||
$this->Cell(120);
|
||||
$this->MultiCell(100,3,$mem_adress2);
|
||||
|
||||
$this->Ln(10);
|
||||
}
|
||||
|
||||
// Page footer
|
||||
public function Footer() {
|
||||
// Position at 15 mm from bottom
|
||||
$this->SetY(-15);
|
||||
// Set font
|
||||
$this->SetFont('helvetica', 'I', 8);
|
||||
}
|
||||
}
|
||||
|
||||
/* End of file Pdf.php */
|
||||
/* Location: ./application/libraries/Pdf.php */
|
||||
Reference in New Issue
Block a user