I am using PHP MPDF to create PDF files. In the footer, I can print the current page number using
{PAGENO}
But how do I get the total number of pages in a PDF file? So in the footer I can print as:
Page (Current Page) of (Total number of pages) Page 1 of 6
source share