2022.2

Table Of Contents
Field Type Description
footer
header
String ThesefieldsallowtosettheheaderandfooterofaMasterPage,usingaMeasurementstring.
Examples
Setting the margins of a Print section
var sectionA = merge.template.contexts.PRINT.sections["Section A"];
sectionA.margins.top = "2in";
sectionA.margins.left = "2in";
sectionA.margins.right = "2in";
sectionA.margins.bottom = "2in";
Setting the header and footer of a Master Page
var masterA = merge.template.masterpages["Master page A"];
masterA.margins.header = "2in";
masterA.margins.footer = "2in";
media
Themediaobjectcanbeusedtospecify,enableandpositionastationery'sfrontandbackinaControl
Script(see"ControlScripts"onpage838and"ControlScriptAPI"onpage1271).
NotethatMediaareonlyusedinPrintsections(see"Media"onpage465).
Theavailablemediaarelistedin,andretrievedvia,thetemplateobject(see"template"onpage1292),
forexample:
var myMedia = merge.template.media.My_Media.
Fields
Field Type Description
height
String TheheightoftheMediausingaMeasurementstring.Forexample,"11in"is11inches.
InaControlScriptthispropertycanbeusedtochangetheheightofaMedia.Inotherscriptsitisonlypos-
sibletogettheheightoftheMedia(read-only).
stationery
Stationery TheStationery'sobject'sfrontandbackfieldsareusedtosetthefrontandthebackofaMedia;see"front,
back"onthenextpage.
Page 1276