1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
| <?php
require("../pdf/phpToPDF.php");
class PDF extends FPDF
{
//En-tête
function Header()
{
//Police Arial gras 15
$this->SetFont('Arial','B',12);
//Décalage à droite
$this->Cell(60);
//Titre
// Write(float h, string txt [, mixed link])
//Lien en bleu souligné
$this->SetTextColor(0,0,255);
$this->SetFont('','U');
$this->Write(5,'www.apcpedagogie.com','http://www.apcpedagogie.com');
//$this->Image('../images/apc.PNG',8,8,100);
$this->Ln(20);
$this->SetAuthor('Riadh HAJJI');
$this->SetCreator('Riadh HAJJI');
$this->SetTitle('FAQ APCPEDAGOGIE');
$this->SetSubject('FAQ');
}
//Pied de page
function Footer() {
//Go to 1.5 cm from bottom
$this->SetY(-15);
//Select Arial italic 8
$this->SetFont('Arial','I',8);
// $this->Cell(0,7,$this->numPageNo(),0,0,'C');
$this->Cell(0,10,'Page '.$this->PageNo().'/{nb}',0,0,'C');
}
} |
Partager