A fast method to obtain the page count of a PDF document from the specified file path.
Namespace: EvoPdfAssembly: evohtmltopdf (in evohtmltopdf.dll) Version: 4.12.0.0
Syntax
| C# |
|---|
public static int GetPageCount( string pdfFilePath ) |
| Visual Basic |
|---|
Public Shared Function GetPageCount ( pdfFilePath As String ) As Integer |
| Visual C++ |
|---|
public: static int GetPageCount( String^ pdfFilePath ) |
Parameters
- pdfFilePath
- Type: System..::..String
The path of the PDF file for which to get the page count.
Return Value
Type: Int32The number of pages in the specified PDF document.