SetRotation
设置页面旋转角度
语法
expression.SetRotation(nAngle);
expression - 表示 ApiPage 类的变量。
参数
| 名称 | 必需/可选 | 数据类型 | 默认值 | 描述 |
|---|---|---|---|---|
| nAngle | 必需 | number | 未提供描述。 |
返回值
boolean
示例
设置文档中第一页的旋转。
// How can I set rotation using a page in a PDF document?
// Set rotation for a page in a PDF document.
let doc = Api.GetDocument();
let page = doc.GetPage(0);
page.SetRotation(90);