Master pages

A master page is defined by a header element, a footer element and the page properties such as page orientation, page borders and so on.

By default, a document template does not create new pages, because at design time you do not know when a page starts. However, the template can defines data placeholders. You can define pagination in a document template through master pages.

Using master pages

A master page is used in same way as a style. You assign the master page to an element. A master page creates a section in the Word document by inserting a section break. Check the documentation of Microsoft Office for information on how section breaks affect the formatting and content of the document.

Data attributes in master pages

Although, you cannot use data attributes directly in master pages, you can use variables to render the data. You can achieve this by:
  • Creating a variable in the template.
  • Using the variable in the master page content.
  • Assigning a data value to the variable for each element that changes a page.

Feedback