PHX_1701Le 19/10/2011 à 12:44
Well, I've located my input-file for the engine: mypdf.class.php
The "default" code is:
class MyPDF extends TCPDF
{
protected $footer_param = array();
protected $transf = array();
public function __construct($orientation='P', $unit='mm', $format='A4', $unicode=true, $encoding='UTF-8', $diskcache=false)
{
parent::__construct($orientation, $unit, $format, $unicode, $encoding, $diskcache);
$this->SetCreator(PDF_CREATOR);
$this->SetAutoPageBreak(false, 0);
$this->linestyleCap = '2 J';
$this->setPrintHeader(false);
$this->jpeg_quality=90;
$this->SetMyFooter();
}
public function SetMyFooter($page = null, $date = null, $heure = null, $form = null)
{
$page = ($page ? true : false);
$date = ($date ? true : false);
$heure = ($heure ? true : false);
$form = ($form ? true : false);
$this->footer_param = array('page' => $page, 'date' => $date, 'heure' => $heure, 'form' => $form);
}
public function Footer()
And it's true, there is no language setting! How can I integrat it? I've tried this without success:
class MyPDF extends TCPDF
{
protected $footer_param = array();
protected $transf = array();
public function __construct($orientation='P', $unit='mm', $format='A4', $langue='fr', $unicode=true, $encoding='UTF-8', $diskcache=false)
{
parent::__construct($orientation, $unit, $format, $langue, $unicode, $encoding, $diskcache);
$this->SetCreator(PDF_CREATOR);
$this->SetAutoPageBreak(false, 0);
$this->linestyleCap = '2 J';
$this->langue = strtolower($langue);
$this->setPrintHeader(false);
$this->jpeg_quality=90;
$this->SetMyFooter();
}
public function SetMyFooter($page = null, $date = null, $heure = null, $form = null)
{
$page = ($page ? true : false);
$date = ($date ? true : false);
$heure = ($heure ? true : false);
$form = ($form ? true : false);
$this->footer_param = array('page' => $page, 'date' => $date, 'heure' => $heure, 'form' => $form);
}
public function Footer()