2021.2

Table Of Contents
A String containing a CSS selector. See https://www.w3schools.com/cssref/css_selectors.asp
for CSS selectors and combinations of CSS selectors.
Example
This script returns all level 1 headings in all sections of the Print context.
var headings = merge.context.query("h1");
PaginationInfo
The PaginationInfo object is returned by the info() function of the results object (see "info()"
on page1452 and "results" on the facing page). It contains information about where an element
is located: on which page and which sheet, and the total number of pages and sheets in the
page bundle in which the element is located.
A page bundle is a group of sections for which the Restart page numbering option is turned off.
In other words, page numbering continues from the start of the first section to the end of the last
section in the group. (See "Configuring page numbers" on page502 and "Control Script: Page
numbering" on page917.)
The PaginationInfo object (as well as the info() function) is only available in Post Pagination
Scripts (see "Post Pagination Scripts" on page929). It is essential in a Post Pagination Script
that creates a table of contents, as described in the following topic: "Creating a Table Of
Contents" on page931.
For the total page count, sheet count and start/end page numbers of a single section, use the
section object's "Pagination" on page1465 (see also: "section" on page1454).
For the total page and sheet count of all Print sections together use the merge object's
"Pagination" on page1467 (see also: "merge" on page1465).
Field Type Description
pageCount Number The number of pages in the page bundle associated with
the section in which the first element of the results is
located.
pageNo Number
The page number on which the first element of the
results is located.
Page 1447