2022.1

Table Of Contents
Field Type Description
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.
repeat Number
Repeat the sheet configuration every n number of
pages. This is useful e.g. when documents can be
so long that they cannot fit in one envelope.
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;
Page 1493