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

Namespace: EvoPdf
Assembly: evohtmltopdf (in evohtmltopdf.dll) Version: 4.12.0.0

Syntax

C#
public static int GetPageCount(
	Stream pdfStream
)
Visual Basic
Public Shared Function GetPageCount ( 
	pdfStream As Stream
) As Integer
Visual C++
public:
static int GetPageCount(
	Stream^ pdfStream
)

Parameters

pdfStream
Type: System.IO..::..Stream
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