pageNumber([page])
Returns the current page number of either the current page or the given page name or page object. Numbering of pages starts at 1. Master pages have no real numbering and will return -1 instead.
Type: function
Parameter(s):
- page {} Optional:
The page name or page object of the page you want to know the number of.
Returns:
-
{Number}:
The page number within the document.