NodePosition

The position() function of the results object (see results, position()) can be used to retrieve the position of the first element in a result set. The returned NodePosition has the following fields.

Field Type Description
height Number Height in pixels of the element.
left Number Left offset in pixels of the element relative to the left side of the page on which the element is located.
pageNo Number

Page number within the current section. Page counts of preceding sections are not taken into account.
In content other than Print, and scripts other than Post Pagination scripts, the returned value is always 1.

Note that this page number cannot be used to construct a cross-section table of contents.
To retrieve position information about elements in any section of the current context, do a cross-section query (merge.context.query()) and use results.info().pageNo (see Creating a Table Of Contents).

top Number Top offset in pixels of the element relative to the top of the page on which the element is located.
width

Number

Width in pixels of the element.