A
A
alehandroWEB2018-03-05 10:33:21
PHP
alehandroWEB, 2018-03-05 10:33:21

How to remove last page numbering in mpdf?

All pages are numbered like this:

$mpdf->setHtmlFooter('<div style="text-align:right;">{PAGENO}</div>');

How not to number the last one?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alehandroWEB, 2018-03-05
@alehandroWEB

Here is the solution:

$mpdf->PageNumSubstitutions[] = [
   'from' => 17, 
   'reset' => 0,
   'type' => 'I', 
   'suppress' => 'on'
];

If total pages 17

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question