Click or drag to resize
Pdf Library for .NET

PdfDocumentGetPagesCount Method (String)

Returns the number of pages in a specified pdf document.

Namespace:  SelectPdf
Assembly:  Select.Pdf (in Select.Pdf.dll) Version: 20.2
Syntax
public static int GetPagesCount(
	string fileName
)

Parameters

fileName
Type: SystemString
The pdf file.

Return Value

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