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 LongDLL
int DLDARotatePage(int InstanceID, int FileHandle, int PageRef, int Angle, int Options);Parameters
| FileHandle | A handle returned by the DAOpenFile, DAOpenFileReadOnly or DAOpenFromStream functions |
|---|---|
| PageRef | A 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 | |
| Options | Reserved for future use. Must be set to 0. |
Return values
| 0 | The 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. |
|---|---|
| 1 | The page rotation was set successfully |