viewer.printTotalFormPagesAdded by IBM on August 8, 2013 | Version 1 (Original)
|Prints the total number of pages in the form. Numbering begins from the first page of the form, and includes all pages regardless of whether they are being printed.
Returns Numbering begins from the first page being printed, and includes pages not being printed. For example, if a form that contained 3 pages was being printed, then the total number of pages would be 3. This would be true even if page 1 was not being printed.
Example This example shows how page numbers would be applied when printing. Note that the total page count is not affected by the number of sheets any page may print on. For example, if a three page form prints on four sheets, the page count is still three.
When printed, the page number will appear on the right-hand side of the footer as shown under.
<right compute="'Page Number ' +. viewer.printTotalFormPages()"></right>