跳到主要内容

AddPage

Adds a new page to document.

Syntax

expression.AddPage(nPos, nWidth, nHeight);

expression - A variable that represents a ApiDocument class.

Parameters

NameRequired/OptionalData typeDefaultDescription
nPosRequirednumberpos to add page.
nWidthOptionalptpage width.
nHeightOptionalptpage height.

Returns

ApiPage

Example

This example adds new page into document after 0 index page.

let doc = Api.GetDocument();
doc.AddPage(1);