evCreate API 5.7 Help

CountPages Function

Counts the total number of all document pages, master pages, or both types of pages in an Envision document currently opened in the Canvas Envision Creator app.

CountPages(type: [[[EvPageType|evpagetype-enumeration.html]]]): Promise<number>

Parameters

type: EvPageType

A member of the EvPageType enumeration, a type of page that should be counted in the document currently opened in the Canvas Envision Creator app.

Return value

Promise<number>

A Promise that, if fulfilled, resolves to the number of pages of the given type in the document currently opened in the Canvas Envision Creator app.

07 March 2025