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

Declaration Syntax
public static int GetPageCount(
Stream pdfStream
)
Public Shared Function GetPageCount ( _
pdfStream As Stream _
) As Integer
public:
static int GetPageCount(
Stream^ pdfStream
)

Parameters
- pdfStream (Stream)
- The stream containing the PDF document for which to get the page count.

Return Value
The number of pages in the specified PDF document.
Assembly:
PdfViewerAspNet (Module: PdfViewerAspNet) Version: 3.1.0.16909 (3.1.0.0)