x of y pages Numbering
Example: Adding the String X Of Y Pages to a Footer
The example given below adds the current page number to a footer, in the form x of y pages.
1. In the
Generated Contents list
, create a new Generated Content object and name it
numbered-footer.
2. Highlight numbered-footer then click the Edit button to open the Generated Text Editor for the footer. Place your cursor in the right hand cell of the footer table, then choose > . Arbortext Styler will add the object FormattedPageNumber into the cell.
3. After FormattedPageNumber object, add a space, the word of and another space, then choose > . The Final Page Number dialog box opens.
4. Select Document to add the number of the last page of the entire document. Click OK to exit the dialog box.
Arbortext Styler will add the object FinalPageNumber into the cell.
5. After the FinalPageNumber object, add a space and the word pages.
6. Choose > to save the change and exit the Generated Text Editor. You will see that the read only field in the properties area of the Generated Contents list describes the generated text settings you have made for your footer.
You have now configured the content for your Generated Content object.
7. Assign the Generated Content object numbered-footer to the page region representing your footer.
8. If you have not already done so, assign the page region representing your footer to the page type representing the layout of the pages that should display your footer.
9. Assign the page type to the relevant page set, if you have not already done so.
10. Choose > .
In the Print Preview window, note that the phrase x of y pages displays in the bottom right-hand corner of every page formatted by the specified page set.