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.

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

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

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

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