pagination works with any font
This commit is contained in:
parent
34252d34c4
commit
67d9934aa1
@ -13,6 +13,7 @@
|
|||||||
* Copyright (C) 2019 Lenin Rivas <lenin.rivas@servcom-it.com>
|
* Copyright (C) 2019 Lenin Rivas <lenin.rivas@servcom-it.com>
|
||||||
* Copyright (C) 2020 Nicolas ZABOURI <info@inovea-conseil.com>
|
* Copyright (C) 2020 Nicolas ZABOURI <info@inovea-conseil.com>
|
||||||
* Copyright (C) 2021-2022 Anthony Berton <anthony.berton@bb2a.fr>
|
* Copyright (C) 2021-2022 Anthony Berton <anthony.berton@bb2a.fr>
|
||||||
|
* Copyright (C) 2023 Frédéric France <frederic.france@netlogic.fr>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -1287,11 +1288,14 @@ function pdf_pagefoot(&$pdf, $outputlangs, $paramfreetext, $fromcompany, $marge_
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Show page nb only on iso languages (so default Helvetica font)
|
// Show page nb only on iso languages (so default Helvetica font)
|
||||||
if (strtolower(pdf_getPDFFont($outputlangs)) == 'helvetica') {
|
// if (strtolower(pdf_getPDFFont($outputlangs)) == 'helvetica') {
|
||||||
$pdf->SetXY($dims['wk'] - $dims['rm'] - 18, -$posy);
|
$pdf->SetXY($dims['wk'] - $dims['rm'] - 18, -$posy);
|
||||||
//$pdf->MultiCell(18, 2, $pdf->getPageNumGroupAlias().' / '.$pdf->getPageGroupAlias(), 0, 'R', 0);
|
// $pdf->MultiCell(18, 2, $pdf->getPageNumGroupAlias().' / '.$pdf->getPageGroupAlias(), 0, 'R', 0);
|
||||||
$pdf->MultiCell(18, 2, $pdf->PageNo().' / '.$pdf->getAliasNbPages(), 0, 'R', 0);
|
// $pdf->MultiCell(18, 2, $pdf->PageNo().' / '.$pdf->getAliasNbPages(), 0, 'R', 0); // doesn't works with all fonts
|
||||||
}
|
// $pagination = $pdf->getAliasNumPage().' / '.$pdf->getAliasNbPages(); // works with $pdf->Cell
|
||||||
|
$pagination = $pdf->PageNo().' / '.$pdf->getNumPages();
|
||||||
|
$pdf->MultiCell(18, 2, $pagination, 0, 'R', 0);
|
||||||
|
// }
|
||||||
|
|
||||||
// Show Draft Watermark
|
// Show Draft Watermark
|
||||||
if (!empty($watermark)) {
|
if (!empty($watermark)) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user