2022.2

Table Of Contents
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.
Fields
Field Type Description
height
String TheheightoftheMediausingaMeasurementstring.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820.
width
String Thewidthof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819).
Bothfrontandbackhavethefollowingfields.
Field Type Description
enabled
boolean Whenenabled,thestationerywillbeincludedintheoutput(Printsectionsonly).
Page 738