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.HtmlToPdf (in Select.HtmlToPdf.dll) Version: 24.1
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