DocPages Syntax DocPages(); Description Returns the total number of pages in the current document. This function cannot be used in the pre-process phase. Returns A number. Example $pages_total = docpages();
DocPages();
$pages_total = docpages();