Click or drag to resize
Pdf Library for .NET

PdfDocumentGetPagesCount Method (Stream)

Returns the number of pages in a specified pdf document.

Namespace:  SelectPdf
Assembly:  Select.Pdf (in Select.Pdf.dll) Version: 24.1
Syntax
public static int GetPagesCount(
	Stream stream
)

Parameters

stream
Type: System.IOStream
The stream containing the pdf document.

Return Value

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