GetPage
按索引从文档获取页面。
语法
expression.GetPage(nPos);
expression - 表示 ApiDocument 类的变量。
参数
| 名称 | 必需/可选 | 数据类型 | 默认值 | 描述 |
|---|---|---|---|---|
| nPos | 必需 | number | 页面位置 |
返回值
示例
获取第一页并设置旋转。
// How to get the page for a document?
// Get the page and display the result in a PDF document.
let doc = Api.GetDocument();
let page = doc.GetPage(0);
page.SetRotation(90);