Skip to main content

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

Add new page into document after 0 index page.

// How do I add the page in a PDF document?

// Add the page using a document object.

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