Fix: total nb of pages on PDF
This commit is contained in:
parent
6a2b33ad5d
commit
ba023167d9
@ -244,8 +244,12 @@ class CommActionRapport
|
|||||||
$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(120, 1, $outputlangs->convToOutputCharset($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);
|
// Show page nb only on iso languages (so default Helvetica font)
|
||||||
$pdf->MultiCell(40, 1, $pagenb.'/{nb}', 0, 'R', 0);
|
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;
|
$y=$pdf->GetY()+2;
|
||||||
|
|
||||||
|
|||||||
@ -379,8 +379,12 @@ class BordereauChequeBlochet extends ModeleChequeReceipts
|
|||||||
$pdf->MultiCell(200, 2, $line2, 0, 'C', 0);
|
$pdf->MultiCell(200, 2, $line2, 0, 'C', 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
$pdf->SetXY(-20,-$posy);
|
// Show page nb only on iso languages (so default Helvetica font)
|
||||||
$pdf->MultiCell(11, 2, $pdf->PageNo().'/{nb}', 0, 'R', 0);
|
if (pdf_getPDFFont($outputlangs) == 'Helvetica')
|
||||||
|
{
|
||||||
|
$pdf->SetXY(-20,-$posy);
|
||||||
|
$pdf->MultiCell(11, 2, $pdf->PageNo().'/'.$pdf->getAliasNbPages(), 0, 'R', 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user