getPageCount
Gets the total number of pages in a PDF document.
Return
The number of pages, or -1 if the document couldn't be opened.
Parameters
context
The application context.
source
The PDF document source.
password
Optional password for encrypted PDFs.