numPages Returns the number of pages in the current document. Syntax Reference_Syntax.numPages Values Type Values Integer A valid integer representing the total number of pages. Applies to Model Object Host Model hostPseudoModel Version XFA 2.1 Examples JavaScript xfa.host.numPages; FormCalc xfa.host.numPages