2022.2

Table Of Contents
Fields
Field Type Description
bottom
left
right
top
String Thesefieldsallowtosetthebottom,left,rightandtopofaPrintsection,usingaMeasurementstring,for
example:"2in"(thissetsamargintotwoinches).
footer
header
String ThesefieldsallowtosettheheaderandfooterofaMasterPage,usingaMeasurementstring.
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398and"ControlScriptAPI"onpage815).
NotethatMediaareonlyusedinPrintsections(see"Media"onpage144).
Theavailablemediaarelistedin,andretrievedvia,thetemplateobject(see"template"onpage835),
forexample:
var myMedia = merge.template.media.My_Media.
Page 818