The NUMPAGES parameter inserts the total number of pages in the document when it is generated. Use it in structured documents such as proposals, contracts and multi-page reports.
Syntax
{{NUMPAGES}}
Values
NUMPAGES takes no options. It is replaced by the total number of pages in the generated document.
Where to add it
Type {{NUMPAGES}} in your Word template where you want the page count to appear, for example in the footer. See Headers, footers and page setup.
Example
In a 5-page document, on page 3:
| Syntax | Output |
|---|---|
{{NUMPAGES}} | 5 |
Document Length : {{NUMPAGES}} Pages | Document Length : 5 Pages |
Page {{PAGE}} of {{NUMPAGES}} | Page 3 of 5 |
Works in
Word templates, including the footer of a Word file you upload (Headers, footers and page setup).
Common errors
- The total is wrong or doesn't change. The page count was typed by hand. Use
{{NUMPAGES}}. - The PDF has a different page count from the Word template. Missing fonts are replaced in PDF output, which moves page breaks. See The PDF looks different from my Word template.
- The document shows
{{NUMPAGES}}as text. Retype the tag in one go. See Merge fields are blank or show their tags.