跳到主要内容

GetPage

按索引从文档获取页面。

语法​

expression.GetPage(index);

expression - 表示 ApiDocument 类的变量。

参数​

名称必需/可选数据类型默认值描述
index必需number页面索引。

返回值​

ApiPage

示例​

从 PDF 访问单个页面。

// Useful for working with a specific page in a PDF.

// Retrieve a page and rotate it in a PDF.

let doc = Api.GetDocument();
doc.AddPage(0);
let page = doc.GetPage(0);
page.SetRotation(90);