Spipu Le 19/10/2011 à 10:45 it is because there is no langage code on the 3rd parameter of HTML2PDF
Thank you for your answer. Unfortunately I didn't no which file do you mean. Where exactly I find this 3rd parameter? Maybe you are so kind and post a filename and a piece of the needed code (as an example).
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()
Spipu Le 20/10/2011 à 10:12 ti is not in myPdf, but directly in the HTML2PDF class
Thank you for your effort and your patience Spidu.
So it's a missing language setting in the html2pdf.class.php. Can you - or somebody else - tell me where this language setting is usually located in this file (because I'm a beginner it's hard to me to find the location of some missing code) and how the code looks like?
Thanks in advance!
Spipu Le 24/10/2011 à 14:09 As told in ./ the pb you have it in the use of HTML2PDF by FusionTicket.
so go on thier forum for asking help, because the pb is with fusionticket