evCreate API 5.7 Help

AddPage Function

Adds a new master page or regular document page to an Envision document currently opened in the Canvas Envision Creator app.

AddPage(atIndex?: number, isMaster?: boolean, name?: string): Promise<[[[EvItem|canvas-envision-document-items.html#page-items]]]>

Parameters

atIndex?: number

A number, a zero-based index where the new page will be inserted. If it is not specified, the new page will be the last.

isMaster?: boolean

A Boolean, a switch to specify whether the new page is a master page. The default value is false, which is a regular document page.

name?: string

A string, the name of the new page. If it is not specified, the system generates the page name.

Return value

Promise<EvItem>

A Promise that, if fulfilled, resolves to a Page item object of the page successfully inserted into the Envision document currently opened in the Canvas Envision Creator app.

11 March 2025