Click or drag to resize
Pdf Library for .NET

PdfDocumentGetPagesCount(String) Method

Gets the number of pages in a PDF file without fully loading the document.

Namespace: SelectPdf.Universal
Assembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.4
Syntax
public static int GetPagesCount(
	string fileName
)

Parameters

fileName  String
The path to the PDF file.

Return Value

Int32
The number of pages in the document.
See Also