2022.2

Table Of Contents
Object or func-
tion
Usage
merge.section.pagination Usedtogetthetotalpagecount,sheetcountandstart/endpagenumbersforasinglesection.See"Pagination"
onpage855.Note:sectionisassumedtorefertoavariablethatholdsaSectionobject(see"Retrievingasec-
tion"onpage848).
merge.pagination Usedtogetthetotalpagecount,sheetcountandstart/endpagenumbersforallsectionsinthePrintcontext
afterpagination.See"Pagination"onpage857.
"PaginationInfo"onpage843 Thisobjectcontainsessentialinformationaboutoneelementinordertocreateatableofcontents(see"Creatinga
TableOfContents"onpage411).
results."info()"onpage847 Acalltoresults.info()returnspaginationinformation(see"PaginationInfo"onpage843)forthefirstelementintheresult
setofaquery(see"query(selector)"onpage843).
Other objects that are available to Post Pagination Scripts
Thelistaboveisn'texhaustive:theobjectslistedintheDesignerAPI(see"StandardScriptAPI"on
page715)andintheControlScriptAPI(see"ControlScriptAPI"onpage815)arealsoavailablein
PostPaginationScripts.
contentitem
ThecontentitemobjectholdsthePrintContentItemthatwillbewrittentotheConnectdatabase
whengeneratingPrintoutput.
ItspropertiesfieldallowstoaddcustompropertiestothePrintContentItem,intheformofkey-
valuepairs(aJSONstring).
Thecontentitemobjectcanbeusedinanytypeofscript.However,ifyouwanttoaddproduction
information-suchasthepage,size,andpositionofelementsafterpagination-totheproperties,
youhavetowriteaPostPaginationScript(see"PostPaginationScripts"onpage410).
Field Type Description
properties
Properties Key-valuepairscontainingcustomproperties.
Notethatapropertyvalueisalwaysstoredasastringinthedatabase.
Example
Thisfollowingcodewouldaddapropertycalled'myProperty'withthevalue'myvalue':
contentitem.properties.myProperty = 'myvalue';
Youcanreplace'myProperty'and'myvalue'withwhatevernameandvaluebestsuitstheusecase.
Page 840