RotatePage

页面属性、页面操作

描述

用于将页面旋转 90 度的倍数。这也会旋转页面坐标系,使其相对于页面方向保持不变。旋转是绝对的,例如以参数 90 调用两次函数将使页面旋转 90 度,而不是 180 度

语法

Delphi

Function TPDFlib.RotatePage(PageRotation: Integer): Integer;

ActiveX

Function PDFlib::RotatePage(PageRotation As Long) As Long

DLL

int DLRotatePage(int InstanceID, int PageRotation);

参数

PageRotation页面旋转的角度,必须是 90 度的倍数(90、180 或 270)

返回值

0无法旋转页面,可能是因为指定的旋转角度不是 90 的倍数
1页面已成功旋转