BCL easyConverter SDK
easyConverter SDK Usermanual
PDF-to-HTML Programming API  |  Download Free Trial  |  Contact Us to Purchase

NumberOfPages Property

Get the total number of pages from the input PDF.

Function NumberOfPages(InputFileName As String, [Password] As Variant) As Long

int get_NumberOfPages(string InputFileName, string Password)

int getNumberOfPages(String InputFileName, String Password) throws PDF2HTMLException


Parameters

InputFileName

Input PDF file.

Password (optional)

Password to open the PDF document, if any.

Exception Handling

Please refer to the list of return exceptions.

Example Usage

oConverter = CreateObject("EasyConverter.PDF2HTML.5")
nPages = oConverter.NumberOfPages(inFileName)