evCreate API 5.7 Help

GetPages Function

Returns all the document pages and master pages that include a given object item in an Envision document currently opened in the Canvas Envision Creator app.

GetPages(obj: [[[EvItem|canvas-envision-document-items.html#object-items]]]): Promise<[[[EvItem|canvas-envision-document-items.html#page-items]]][]>

Parameters

obj: EvItem

An Object item object, an object item from the Envision document currently opened in the Canvas Envision Creator app whose pages should be returned.

Return value

Promise<EvItem[]>

A Promise that, if fulfilled, resolves to an array of Page item objects of the pages from the current Envision document on which the given object item is located.

Discussion

The function returns one page in most cases. But if a given object item is located on a master page, it will return all the document pages linked to that master page.

27 March 2025