A fast method to obtain the page count of a specified PDF document.

C# | Visual Basic | Visual C++ |
public static int GetPageCount( string pdfFilePath )
Public Shared Function GetPageCount ( pdfFilePath As String ) As Integer
public: static int GetPageCount( String^ pdfFilePath )

- pdfFilePath (String)
- The path of the PDF file for which to get the page count.

Int32
The number of pages in the specified PDF document.
The number of pages in the specified PDF document.
Assembly: ExpertPdf.HtmlToPdf (Module: ExpertPdf.HtmlToPdf.dll) Version: 9.2.0.25824 (9.2.0.0)