NumberOfPages Property

Get the total number of pages from the input PDF.

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


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.3")
nPages = oConverter.NumberOfPages(inFileName)