跳到主要内容

RemovePage

按索引从文档移除页面

语法

expression.RemovePage(nPos);

expression - 表示 ApiDocument 类的变量。

参数

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

返回值

boolean

示例

从 PDF 文档中移除页面。

// How can I remove the page using a document in a PDF document?

// Remove the page for a document in a PDF document.

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