MPDF How to pass the total of page number to PHP variable?
Or how to set page number start at 0.
Mpdf version 7.
Thanks
MPDF How to pass the total of page number to PHP variable?
Or how to set page number start at 0.
Mpdf version 7.
Thanks
Copyright © 2021 Jogjafile Inc.
To get the number of pages to a variable, you can use
This is however undocumented and can stop working in future versions.
As noted in the documentation,
As 0 is not positive, it is not possible to start page numbering with it.