DocumentGetPageCount Method (String) |
A fast method to obtain the page count of a specified PDF document.
Namespace: ExpertPdf.HtmlToPdf.PdfDocumentAssembly: ExpertPdf.HtmlToPdf (in ExpertPdf.HtmlToPdf.dll) Version: 11.0.0
Syntaxpublic static int GetPageCount(
string pdfFilePath
)
Public Shared Function GetPageCount (
pdfFilePath As String
) As Integer
Parameters
- pdfFilePath
- Type: SystemString
The path of the PDF file for which to get the page count.
Return Value
Type:
Int32The number of pages in the specified PDF document.
See Also