Debenu Quick PDF logo

RotatePage

Page properties, Page manipulation

Description

Used to rotate the page by a multiple of 90 degrees. This will also rotate the co-ordinate system on the page so that it remains the same with respect to the orientation of the page. The rotation is absolute, for example calling the function twice with a parameter of 90 will result in a page rotated by 90 degrees, not 180 degrees.

Syntax

Delphi

function TDebenuPDFLibrary1511.RotatePage(PageRotation: Integer): Integer;

ActiveX

Function DebenuPDFLibrary1511.PDFLibrary::RotatePage(PageRotation As Long) As Long

DLL

int DPLRotatePage(int InstanceID, int PageRotation)

Parameters

PageRotation The number of degrees to rotate the page by. Must be a multiple of 90 degrees (90, 180 or 270).

Return values

0 The page could not be rotated, probably because the rotation specified was not a multiple of 90
1 The page was rotated successfully

Copyright © 2014 Debenu. All rights reserved. AboutContactBlogNewsletterSupport