Return the total number of pages of a PDF document.
| Parameter |
Required |
Description |
| Source path |
Yes |
PDF file to analyze. |
Operation status (Error / ErrorMessage) via PDFToolsStatus.
- The source file cannot be password-protected.
&PDFFileSource = "C:\Documents\report.pdf"
&PDFToolsStatus = &PdfToolsUtils.PageCount(&PDFFileSource,&PDFPageCount)
Possible result: successful operation (Error = false) with page count 12.
| Situation |
Type |
Message / behavior |
| The source file does not exist, is corrupted, or is protected |
Error |
Message describing the file read problem. |