Master Pages

In Print sections, there are often elements that need to be repeated across pages, like headers, footers and logos. In addition, some elements should appear only on specific pages, such as only the first page, or the last page, or only on pages in-between. Examples are a different header on the first page, and a tear-off slip that shows up on the last page.

This is what Master Pages are used for. Master Pages can only be used in the Print context (see Print context).

Master Pages resemble Print sections, and they are edited in much the same way (see Editing a Master Page) but they contain a single page and do not have any text flow. Only one Master Page can be applied per page in printed output. Then a Print template is created, one master page is added to it automatically. You can add more Master Pages; see Adding a Master Page. Initially, the original Master Page will be applied to all pages, but different Master Pages can be applied to different pages; see Applying a Master Page to a page in a Print section.

Examples

This how-to demonstrates the use of Master Pages to show terms and conditions on the back of the first page of a Print section only:

How to use Master Pages to add a tear-off slip to the first page of an invoice is explained in the following how-to :

Adding a Master Page

When a Print template is created, one master page is added to it automatically. Adding more Master Pages can be done as follows:

  • On the Resources pane, right-click the Master pages folder and click New Master Page.
  • Type a name for the master page.
  • Optionally, set the margin for the header and footer. See Master Pages.
  • Click OK.

Initially, the master page that has been created together with the Print context will be applied to all pages in the Print section. After adding more Master Pages, different Master Pages can be applied to different pages; see Applying a Master Page to a page in a Print section.

Editing a Master Page

Master Pages are edited just like sections, in the workspace. To open a Master Page, expand the Master pages folder on the Resources pane, and double-click the Master Page to open it.

A Master Page can contain text, images and other elements (see Content elements), including variable data and dynamic images (see Personalizing content). All elements on a Master Page should have an absolute position or be inside an element that has an absolute position. It is good practice to position elements on a Master Page by placing them in a Positioned Box (see Content elements).

Keep in mind that a Master Page always remains a single page. Its content cannot overflow to a next page. Content that doesn't fit, will not be displayed.

Editing the Master Page is optional. One Master Page must always exist in a Print template, but if you don't need it, you can leave it empty.

Adding a header and footer

Headers and footers are not designed as part of the contents of a Print section, but as part of a Master Page, which is then applied to a page in a print section.

To create a header and footer:

  1. First insert elements that form the header or footer, such as the company logo and address, on the Master Page; see Editing a Master Page.
  2. Next, define the margins for the header and footer. The margins for a header and footer are set in the Master Page properties. This does not change the content placement within the Master Page itself; in Master Pages, elements can go everywhere on the page. Instead, the header and footer of the Master Page limit the text flow on pages in the Print sections to which this Master Page is applied. Pages in a Print section that use this Master Page cannot display content in the space that is reserved by the Master Page for the header and footer, so that content in the Print section does not collide with the content of the header and footer. To set a margin for the header and/or footer:
    1. On the Resources pane, expand the Master pages folder, right-click the master page, and click Properties.
    2. Fill out the height of the header and/or the footer. The contents of a print section will not appear in the space reserved for the header and/or footer on the corresponding master page.
  3. Finally, apply the master page to a specific page in a print section. See Applying a Master Page to a page in a Print section.

Applying a Master Page to a page in a Print section

Every page in a print section has a natural position: it can be the first page, the last page, one of the pages in between (a 'middle page'), or a single page. For each of those positions, you can set a different Master Page and Media (see Media). It can even have two master pages, if printing is done on both sides (called duplex printing).

To apply Master Pages to specific page positions in a Print section:

  1. On the Resources pane, expand the Print context; right-click the Print section, and click Sheet configuration.
  2. Optionally, check Duplex to enable content to be printed on the back of each sheet. Your printer must support duplex for this option to work. If Duplex is enabled, you can also check Tumble to duplex pages as in a calendar, and Facing pages to have the margins of the section switch alternately, so that pages are printed as if in a magazine or book.
  3. If the option Same for all positions is checked, the same Master Page will be applied to every page in the print section (and to both the front and the back side of the page if duplex printing is enabled). Uncheck this option.
  4. Decide which Master Page should be linked to which sheet (position): click the downward pointing arrow after Master Page Front and select a Master Page. If Duplex is enabled, you can also select a Master Page for the back of the sheet and consequently, check Omit Master Page Back in case of an empty back page to omit the specified Master Page on the last backside of a section if that page is empty and to skip that page from the page count.
  5. Optionally, decide which Media should be linked to each sheet.
  6. Click OK to save the settings and close the dialog.

Deleting a Master Page

To delete a Master Page, expand the Master pages folder on the Resources pane, right-click the master page, and click Delete.

Note that one Master Page as well as one Media must always exist in a Print template. Just leave it empty if you don't need it.

 
  • Last Topic Update: 24/01/2017 09:32
  • Last Published: 7/6/2017 : 9:48 AM