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);