forked from Wavyzz/dolibarr
Fix: total nb of pages on PDF
This commit is contained in:
@@ -244,8 +244,12 @@ class CommActionRapport
|
||||
$pdf->SetFont('','B',10);
|
||||
$pdf->SetXY($this->marge_gauche, $this->marge_haute);
|
||||
$pdf->MultiCell(120, 1, $outputlangs->convToOutputCharset($this->title), 0, 'L', 0);
|
||||
$pdf->SetXY($this->page_largeur-$this->marge_droite-40, $this->marge_haute);
|
||||
$pdf->MultiCell(40, 1, $pagenb.'/{nb}', 0, 'R', 0);
|
||||
// Show page nb only on iso languages (so default Helvetica font)
|
||||
if (pdf_getPDFFont($outputlangs) == 'Helvetica')
|
||||
{
|
||||
$pdf->SetXY($this->page_largeur-$this->marge_droite-40, $this->marge_haute);
|
||||
$pdf->MultiCell(40, 1, $pagenb.'/'.$pdf->getAliasNbPages(), 0, 'R', 0);
|
||||
}
|
||||
|
||||
$y=$pdf->GetY()+2;
|
||||
|
||||
|
||||
@@ -379,8 +379,12 @@ class BordereauChequeBlochet extends ModeleChequeReceipts
|
||||
$pdf->MultiCell(200, 2, $line2, 0, 'C', 0);
|
||||
}
|
||||
|
||||
$pdf->SetXY(-20,-$posy);
|
||||
$pdf->MultiCell(11, 2, $pdf->PageNo().'/{nb}', 0, 'R', 0);
|
||||
// Show page nb only on iso languages (so default Helvetica font)
|
||||
if (pdf_getPDFFont($outputlangs) == 'Helvetica')
|
||||
{
|
||||
$pdf->SetXY(-20,-$posy);
|
||||
$pdf->MultiCell(11, 2, $pdf->PageNo().'/'.$pdf->getAliasNbPages(), 0, 'R', 0);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user