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.

Function GetPageCount(InputFileName As String, [Password]) As Long

int GetPageCount(string InputFileName, string Password)

int GetPageCount(String InputFileName, String Password) throws PDFProcessorException

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"