Post Pagination Script API

The table below lists the functions and objects that are only available in Post Pagination Scripts. Click through to the object to find a description and sample scripts.
See Post Pagination Scripts for information about this kind of scripts, how to insert them and what you can do with them.

Post Pagination Scripts only apply to the Print context. These functions and objects cannot be used with other contexts.
It is possible to define a function in a Control Script which calls these functions, as long as that function is only invoked from a Post Pagination Script.
Object or function Usage
merge.context.query(selector) Call merge.context.query(selector) to run a query across all sections in the Print context. The query returns a result set that is read-only.
merge.section.paginate() A call to merge.section.paginate() triggers pagination of the current section.
PaginationInfo This object contains essential information about one element in order to create a table of contents (see Creating a Table Of Contents).
results.info() A call to results.info() returns pagination information (see PaginationInfo) for the first element in the result set of a query (see query(selector)).
Other objects that are available to Post Pagination Scripts

The list above isn't exhaustive: the objects listed in the Designer API (see Standard Script API) and in the Control Script API (see Control Script API) are also available in Post Pagination Scripts.