DARotatePage

直接访问功能、页面属性

描述

设置所选页面的旋转,旋转仅适用于查看的页面,坐标系会随页面旋转

语法

Delphi

Function TPDFlib.DARotatePage(FileHandle, PageRef, Angle, Options: Integer): Integer;

ActiveX

Function PDFlib::DARotatePage(FileHandle As Long, PageRef As Long, Angle As Long, Options As Long) As Long

DLL

int DLDARotatePage(int InstanceID, int FileHandle, int PageRef, int Angle, int Options);

参数

FileHandle由 DAOpenFile、DAOpenFileReadOnly 或 DAOpenFromStream 函数返回的句柄
PageRefDAFindPage 或 DANewPage 函数返回的页面引用 将页面旋转的顺时针角度(度),必须为 90 的倍数
Angle
Options保留供将来使用,必须设为 0

返回值

0无法设置页面旋转。请检查 FileHandle 和 PageRef 参数是否正确,并确保 Angle 参数是 90 的倍数
1页面旋转已成功设置