Returns the total number of pages found in a PDF file.
NbPages is int
NbPages = PDFNumberOfPages("C:\temp\MyDocument.pdf")
Info("Number of pages in the PDF: " + NbPages)
Syntax
<Result> = PDFNumberOfPages(<PDF file> [, <Password>])
<Result>: Integer
Total number of pages in the PDF file.
<PDF file>: Character string
Name and path of PDF file to analyze.
<Password>: Optional character string
Password required to open the file if the PDF file is password protected.
Business / UI classification: Business Logic
Component: wd280wdpdf.dll