Fix: Page code into PDF

This commit is contained in:
Laurent Destailleur 2011-02-20 15:22:07 +00:00
parent 3471cb0247
commit f7511b990c

View File

@ -66,8 +66,8 @@ class CommActionRapport
$this->marge_haute=10; $this->marge_haute=10;
$this->marge_basse=10; $this->marge_basse=10;
$this->title=$langs->trans("ActionsReport").' '.$this->year."-".$this->month; $this->title=$langs->transnoentitiesnoconv("ActionsReport").' '.$this->year."-".$this->month;
$this->subject=$langs->trans("ActionsReport").' '.$this->year."-".$this->month; $this->subject=$langs->transnoentitiesnoconv("ActionsReport").' '.$this->year."-".$this->month;
} }
/** /**
@ -91,7 +91,7 @@ class CommActionRapport
$outputlangs->load("bills"); $outputlangs->load("bills");
$outputlangs->load("products"); $outputlangs->load("products");
$dir = $conf->agenda->dir_temp."/"; $dir = $conf->agenda->dir_temp."/";
$file = $dir . "actions-".$this->month."-".$this->year.".pdf"; $file = $dir . "actions-".$this->month."-".$this->year.".pdf";
if (! file_exists($dir)) if (! file_exists($dir))
@ -257,7 +257,7 @@ class CommActionRapport
// Show title // Show title
$pdf->SetFont('','B',10); $pdf->SetFont('','B',10);
$pdf->SetXY($this->marge_gauche, $this->marge_haute); $pdf->SetXY($this->marge_gauche, $this->marge_haute);
$pdf->MultiCell(80, 1, $this->title, 0, 'L', 0); $pdf->MultiCell(120, 1, $outputlangs->convToOutputCharset($this->title), 0, 'L', 0);
$pdf->SetXY($this->page_largeur-$this->marge_droite-40, $this->marge_haute); $pdf->SetXY($this->page_largeur-$this->marge_droite-40, $this->marge_haute);
$pdf->MultiCell(40, 1, $pagenb.'/{nb}', 0, 'R', 0); $pdf->MultiCell(40, 1, $pagenb.'/{nb}', 0, 'R', 0);