2022.2

Table Of Contents
Pagination
ThePaginationobjectthatisaccessedviathesectionobject(see"section"onpage1305)contains
thetotalpagecount,sheetcountandstart/endpagenumbersforasingle section.Theseproperties
areread-onlyandareonlyavailableinPostPaginationScripts(see"PostPaginationScripts"on
page850).
Forthetotalpageandsheetcountofall Print sectionstogetherusethemergeobject's"Pagination"
onthefacingpage(seealso:"merge"below).
Forinformationaboutwhereanelementislocatedandthecountsofpagesandsheetsinapage
bundle-agroupofsectionsinwhichthepagenumberingcontinues-use"info()"onpage1304.
Field Type Description
pageCount
Number
The total number of pages in this section.
pageEnd
Number Theindex(1-based)ofthelastpageinthissection.
pageStart
Number Theindex(1-based)ofthefirstpageinthissection.
sheetCount
Number Thetotalnumberofsheetsinthissection.
sheetEnd
Number Theindex(1-based)ofthelastsheetinthissection.
sheetStart
Number Theindex(1-based)ofthefirstsheetinthissection.
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.
Field Type Description
channel
"Channel"on
page1294
Thefinaloutputchannel:EMAIL,PRINTorWEB.Thechanneldoesn'tchangewhentheoutputconsistsofdif-
ferentcontexts.Whengeneratinganemail,forexample,thechannelisEMAIL,evenwhenmergingthePrint
contexttoattachittotheemail.
Page 1313