getPageCount

Get the page count for the most recent print call.
getPageCount([out, retval] int *count)
This function returns the number of pages printed by the most recent call to printPDF4 or startJob.
VB6:
... pdf.printPDF4 numberOfPages = pdf.getPageCount