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

GetPageRotation Method

Gets page rotation information from a PDF file.

Function GetPageRotation(InputFileName As String,
                          Page As Long) As prcPageRotation

prcPageRotation GetPageRotation(string InputFileName, int Page)

prcPageRotation GetPageRotation(String InputFileName, int Page) throws PDFProcessorException

Parameters

Return Values

Page rotation value.

Remarks

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

Example Usage

Set oProcessor = CreateObject("easyPDF.PDFProcessor.8")
 
rot = oProcessor.GetPageRotation("C:\test\input.pdf", 0)
 
Select Case rot
    Case PRC_ROT_0_DEG
        nRotation = 0
    Case PRC_ROT_90_DEG
        nRotation = 90
    Case PRC_ROT_180_DEG
        nRotation = 180
    Case PRC_ROT_270_DEG
        nRotation = 270
End Select
 
MsgBox "Page rotation: " + CStr(nRotation)