2022.2

Table Of Contents
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page1277.
width
String ThewidthoftheMediausingaMeasurementstring.Forexample,"8.5in"is8.5inches.
InaControlScriptthispropertycanbeusedtochangethewidthofaMedia.Inotherscriptsitisonlypos-
sibletogetthewidthoftheMedia(read-only).
front, back
ThefrontandbackfieldsoftheStationeryobjectareusedtosetthefrontandthebackofaMedia
(see"media"onpage1276).
Bothfrontandbackhavethefollowingfields.
Page 1194