DARotatePage

Direct access functionality, Page properties

Description

Sets the rotation of the selected page. The rotation is only applicable to the viewed page, the co-ordinate system rotates with the page.

Syntax

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);

Parameters

FileHandleA handle returned by the DAOpenFile, DAOpenFileReadOnly or DAOpenFromStream functions
PageRefA page reference returned by the DAFindPage or DANewPage functions The clockwise angle in degrees to rotate the page by, must be a multiple of 90
Angle
OptionsReserved for future use. Must be set to 0.

Return values

0The page rotation could not be set. Check that the FileHandle and PageRef parameters are correct, and ensure that the Angle parameter is a multiple of 90.
1The page rotation was set successfully