跳到主要内容

AddPage

向文档添加新页面。

语法

expression.AddPage(nPos, nWidth, nHeight);

expression - 表示 ApiDocument 类的变量。

参数

名称必需/可选数据类型默认值描述
nPos必需number添加页面的位置。
nWidth可选pt页面宽度。
nHeight可选pt页面高度。

返回值

ApiPage

示例

在第 0 页之后向文档添加新页面。

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

// Add the page using a document object.

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