2018.2

Table Of Contents
Function Description
borders.
info()
Returns pagination information for one element in the result set (see "results" on page778) of a
query across all sections in a Print context (see "query(selector)" on page776).
The returned information is of the type PaginationInfo (see "PaginationInfo" on page777).
This function can only be used in a Post Pagination Script ; see "Post Pagination Script API" on
page774.
For an example see: "Creating a Table Of Contents" on page385.
section
The section object can be used to query and modify how the section (and the related context)
will be outputted. It is one of the most important objects in Control Scripts (see "Control Scripts"
on page369 and "Control Script API" on page749).
Retrieving a section
A section can be retrieved using merge.template.contexts.ContextType.sections["section
name"], for example: merge.template.contexts.PRINT.sections["Section EN"].
A section can also be retrieved via merge.context.sections['section name']. Remember,
however, that when several contexts need to be merged (for example, when the Print context is
attached to an email), the script needs to check if the current context is of the type that contains
the desired section (for example: if (merge.context.type == ContextType.PRINT) {}). When
sections in different contexts have the same name, it is safer to use
merge.template.contexts.ContextType.sections["section name"].
Fields
Field Type Description
"background" on Background Print sections only. Used to set a PDF
Page 782