2022.2

Table Of Contents
Field Type Description
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thepreviouspage).
Bothfrontandbackhavethefollowingfields.
Field Type Description
enabled
boolean Whenenabled,thestationerywillbeincludedintheoutput(Printsectionsonly).
url
String Specifiestheimagetouseasvirtualstationery.ForafilenamedMy_Media.pdf,storedinsidethetemplate
resources,theurlwouldbeimages/My_Media.pdf.Thecompletesyntaxforanexternalfile
is:file://<host>/<path>.Ifthehostis"localhost",itcanbeomitted,resultinginfile:///<path>,forexample:
file:///c:/users/Adminstrator/Pictures/My_Media.jpg.
page
Number PDFandTIFFfilesmaycountmorethanonepage.Specifythepagenumbertouse.
position
"MediaPosition"on
page1296
Thepositionisusedtoplacethestationeryonthepage(absolute,centered,fittomedia).
top
Measurement Theverticaloffsetfromthetopofthepage,usedtopositionthestationery(onlywhenabsolutepositioningis
selected).Thisvaluecanbenegative.
left
Measurement Thehorizontaloffsetfromtheleftofthepage,usedtopositionthestationery(onlywhenabsolutepositioning
isselected).Thisvaluecanbenegative.
merge
InControlScripts,therootlevelinstanceoftheobjectmergeistheentrypointfromwhereyoucan
queryandchangethewaycontextsaremerged.Itgivesaccesstothetemplatewithallitscontextsand
sections.
FormoreinformationaboutControlScripts,see"ControlScripts"onpage838and"ControlScriptAPI"
onpage1271.
SomeoftheobjectsarealsousefulinPostPaginationScripts;see"PostPaginationScripts"on
page850and"PostPaginationScriptAPI"onpage1297.
Forsamplescripts,followthelinkstotherespectiveobjects.
Page 1277