Home Search

DriveWorks Pro 21
PDFGetPageCount

Send Feedback

PDFGetPageCount

This function returns the page count of the given PDF document.

Syntax

PDFGetPageCount([PDF File])

Where:

PDF File is the path to the PDF file from which to get the page count. If the path is not absolute DriveWorks will attempt to resolve it.

Examples

Rule

Result
PDFGetPageCount("DataSheets\ProductGuide.pdf")Will return 5 (the number of pages in the given document).

The given relative path is resolved from the Project location.

PDFGetPageCount("D:\DriveWorks\DataSheets\ProductGuide.pdf")Will return 5 (the number of pages in the given document).
PDFGetPageCount(UploadPDFReturn)Will return 5 (the number of pages in the document, uploaded from the control UploadPDFReturn).