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

GetPageCount Method

Gets page count from a PDF file.

int GetPageCount(string InputFileName, string Password)



Function GetPageCount(InputFileName As String, Password As String) As Integer



def GetPageCount(self, InputFileName, Password)



int GetPageCount(String InputFileName,
                 String Password) throws PDFProcessorException


function GetPageCount($InputFileName, $Password) 



BclPrcResult GetPageCount(const BclPDFProcessorSettings* pSettings,
                          const wchar_t* InputFileName,
                          const wchar_t* Password,
                          int* poutVal);
Function GetPageCount(InputFileName As String, [Password]) As Long



Parameters

Return Values

Page count of the input PDF file.

Remarks

N/A.

Example Usage

Set oProcessor = CreateObject("easyPDF.PDFProcessor.8")
nCount = oProcessor.GetPageCount("C:\test\input.pdf")
MsgBox "There are " + CStr(nCount) + " pages in this PDF file"