evCreate API 5.7 Help

SetSize Function

Updates the width and height of a given page in an Envision document currently opened in the Canvas Envision Creator app.

SetSize(page: [[[EvItem|canvas-envision-document-items.html#page-items]]], width: number, height: number): Promise<void>

Parameters

page: EvItem

A Page item object of a page in the Envision document currently opened in the Canvas Envision Creator app whose width or height should be updated.

width: number

A number, a new width of the given page in the length UoM global for the evCreate API.

height: number

A number, a new height of the given page in the length UoM global for the evCreate API.

Return value

Promise<void>

A Promise that, if fulfilled, resolves to void if the given page in the current Envision document has been successfully resized.

13 March 2025