AddFont('DejaVu','','dejavusans.php',true); $this->AddFont('DejaVu','B','dejavusansb.php',true); $this->AddFont('DejaVuCond','','dejavusanscondensed.php',true); $this->AddFont('DejaVuCond','B','dejavusanscondensedb.php',true); date_default_timezone_set ('Europe/Paris'); $this->cn = $p_cn; $this->own = new own($this->cn); $this->soc = $this->own->MY_NAME; $this->date = date('d.m.Y'); } function setDossierInfo($dossier = "n/a") { $this->dossier = dossier::name()." ".$dossier; } function Header() { //Arial bold 12 $this->SetFont('Arial', 'B', 12); //Title $this->Cell(0,10,$this->dossier, 'B', 0, 'C'); //Line break $this->Ln(20); } function Footer() { //Position at 1.5 cm from bottom $this->SetY(-20); //Arial italic 8 $this->SetFont('Arial', 'I', 8); //Page number $this->Cell(0,8,'Date '.$this->date." - Page ".$this->PageNo().'/{nb}',0,0,'C'); $this->Ln(3); // Created by PhpCompta $this->Cell(0,8,'Created by Phpcompta, the most professional opensource accounting software http://www.phpcompta.eu',0,0,'C',false,'http://www.phpcompta.eu'); } function Cell ($w, $h=0, $txt='', $border=0, $ln=0, $align='', $fill=false, $link='') { $txt = str_replace("\\", "", $txt); return parent::Cell($w, $h, $txt, $border, $ln, $align, $fill, $link); } }