PDF Viewer Control for .NET 2.0 Windows Forms
GetPageCount Method (pdfFilePath)
NamespacesPdfViewer4WinNetPdfViewerGetPageCount(String)
A fast method to obtain the page count of a specified PDF document.
Declaration Syntax
C#Visual BasicVisual C++
public static int GetPageCount(
	string pdfFilePath
)
Public Shared Function GetPageCount ( _
	pdfFilePath As String _
) As Integer
public:
static int GetPageCount(
	String^ pdfFilePath
)
Parameters
pdfFilePath (String)
The path of the PDF file for which to get the page count.
Return Value
The number of pages in the specified PDF document.

Assembly: PdfViewerWinNet (Module: PdfViewerWinNet) Version: 3.1.0.16508 (3.1.0.0)