BCL easyPDF SDK
easyPDF SDK Usermanual
PDF Creator Programming API  |  Download Free Trial  |  Contact Us to Purchase

RotatePages Method

Rotates one or more pages from a PDF file.

void RotatePages(string InputFileName,
                 string OutputFileName,
                 int From,
                 int To,
                 prcPageRotation Rotation)

Sub RotatePages(InputFileName As String, _
                OutputFileName As String, _
                From As Integer, _
                To As Integer, _
                Rotation As prcPageRotation)

def RotatePages(self, InputFileName, OutputFileName, From, To, Rotation)





void RotatePages(String InputFileName,
                 String OutputFileName,
                 int From,
                 int To,
                 prcPageRotation Rotation) throws PDFProcessorException

function RotatePages($InputFileName, $OutputFileName, $From, $To, $Rotation) 





BclPrcResult RotatePages(const BclPDFProcessorSettings* pSettings,
                         const wchar_t* InputFileName,
                         const wchar_t* OutputFileName,
                         int From,
                         int To,
                         BclPrcPageRotation Rotation);
Sub RotatePages(InputFileName As String, _
                OutputFileName As String, _
                From As Long, _
                To As Long, _
                Rotation As prcPageRotation)

bepproc +Rotate [-angle 0|90|180|270|clockwise|counterclockwise|anticlockwise|upsidedown]
                [-pages <from>-<to> | -page <int>]




Parameters

Return Values

N/A.

Remarks

The page number uses zero-based index, meaning that page number starts from 0.

Example Usage

Set oProcessor = CreateObject("easyPDF.PDFProcessor.8")
' rotate first 5 pages by 90 degrees
oProcessor.RotatePages "C:\test\input.pdf", C:\test\output.pdf", 0, 4, PRC_ROT_90_DEG