2018.2

Table Of Contents
Field Type Description
middle positions)
masterBack String Specifies the Master Page to use on the backside of
sheets in this position.
masterFront String Specifies the Master Page to use on the front of sheets in
this position.
media String Specifies the Media to use with sheets in this position.
Note
To remove a Media or Master Page via script, give it the value undefined, or null, or an
empty string (""); see the examples below.
Examples
This script retrieves a Print section and modifies a number of settings for all of its sheets.
let section = merge.template.contexts.PRINT.sections["Section 1"];
section.sheetConfig.positions.all.allowContent = AllowContent.ALL_
SIDES;
section.sheetConfig.positions.all.media = "MyMedia";
section.sheetConfig.positions.all.masterFront = "Master page 1";
section.sheetConfig.positions.all.masterBack = undefined; // or
null, or an empty string
The following script ensures that empty backsides of single sheets are omitted.
let section = merge.template.contexts.PRINT.sections["Section 1"];
section.sheetConfig.positions.single.omitMasterOnEmptyBackside =
true;
template
The template object represents the template with all its contexts and sections. It is used
frequently in Control Scripts (see "Control Scripts" on page751 and "Control Script API" on
Page 1182