PDF Viewer Control for ASP.NET Documentation

PdfViewerGetPageCount Method

PDF Viewer Control for ASP.NET
A fast method in PDF Viewer control for ASP.NET to obtain the page count of a PDF document from the given stream.

Namespace:  PdfViewer4AspNet
Assembly:  PdfViewerAspNet (in PdfViewerAspNet.dll) Version: 10.0.0.0 (10.0.0.0)
Syntax

public static int GetPageCount(
	Stream pdfStream
)

Parameters

pdfStream
Type: System.IOStream
The stream containing the PDF document for which to get the page count.

Return Value

Type: Int32
The number of pages in the specified PDF document.
See Also

Reference