Click or drag to resize
Pdf Library for .NET

PdfDocumentGetPagesCount(Stream) Method

Returns the number of pages in a specified pdf document.

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

Parameters

stream  Stream
The stream containing the pdf document.

Return Value

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