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 函式傳回的控制代碼
PageRef由 DAFindPage 或 DANewPage 函式傳回的頁面參照 順時針旋轉頁面的角度(度),必須是 90 的倍數
Angle
Options保留供日後使用,必須設為 0。

傳回值

0無法設定頁面旋轉。請確認 FileHandle 與 PageRef 參數正確,且 Angle 參數是 90 的倍數。
1頁面旋轉設定成功