AddPage
Adds a new page to document.
Syntax
expression.AddPage(index, width, height);
expression - A variable that represents a ApiDocument class.
Parameters
| Name | Required/Optional | Data type | Default | Description |
|---|---|---|---|---|
| index | Required | number | The index where the page will be added. | |
| width | Optional | pt | The page width. | |
| height | Optional | pt | The page height. |
Returns
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);