pageCount([pageCount])
Returns the number of all pages in the current document. If a number is given as an argument, it will set the document’s page count to the given number by either adding pages or removing pages until the number is reached. If pages are added, the master page of the document’s last page will be applied to the new pages.
Type: function
Parameter(s):
- pageCount {Number} Optional:
New page count of the document (integer between 1 and 9999).
Returns:
-
{Number}:
The amount of pages.