跳到主要内容

RemovePage

按索引从文档移除页面

语法

expression.RemovePage(nPos);

expression - 表示 ApiDocument 类的变量。

参数

名称必需/可选数据类型默认值描述
nPos必需number页面位置

返回值

boolean

示例

此示例展示如何从文档中删除页面。

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