masterpage

The masterpage object is used to set a Master Page's header and footer or to replace its entire HTML body. It can only be accessed in Control Scripts (see Control Scripts and Control Script API). Trying to access it in another type of script will result in an error.
Note that Master Pages are only used in a Print context (see Master Pages).

In script, Master Pages are retrieved via the masterpages Array which contains all Master Pages in the current template (see template).
For example:

Copy
var myMasterpage = merge.template.masterpages["Master page 1"];.

Functions and fields

Field

Type

Description

html()

 

Gets or sets the HTML of the body element.

margins

Margins

Allows to set the header and footer of a Master Page, using a Measurement string, for example: "2in" (this sets a margin to two inches).