Skip to main content

AddPage

Adds a new page to document.

Syntax

expression.AddPage(index, width, height);

expression - A variable that represents a ApiDocument class.

Parameters

NameRequired/OptionalData typeDefaultDescription
indexRequirednumberThe index where the page will be added.
widthOptionalptThe page width.
heightOptionalptThe page height.

Returns

ApiPage

Example

Insert a new page into a document in a PDF.

// Can I add pages to a PDF document?

// Place additional pages at specific positions in a PDF.

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