Click or drag to resize
Pdf Library for .NET

PdfDocumentGetPagesCount(Stream) Method

Gets the number of pages in a PDF document loaded from a stream.

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

Parameters

stream  Stream
The stream containing the PDF data.

Return Value

Int32
The number of pages in the document.
See Also