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.
VB:
... pdf.printPDF4() numberOfPages = pdf.getPageCount()