The DomPDFPages function returns the number of pages in a generated PDF file.
LOTUSSCRIPT
Declarations
Declare Function DomPDFPages Lib "DOMINOPDF.DLL" (Byval szPDF As String) As Long
Return Value
Returns the number of pages in the specified PDF file.
Syntax
szPDF - The fully qualified file path and name of the PDF file.
For example;
c:\documents\customers.pdf
Example
Sub Initialize
'Declarations...
Dim iPages As Long
'Error handler...
On Error Goto Error_Handler
iPages = DomPDFPages(|c:\documents\customers.pdf|)
The_End:
Exit Sub
Error_Handler:
Print Error$
Resume The_End
End Sub