Document.getPageCount

int getPageCount()

Retrieves the total number of pages inside document.

Returns

total page count of document, or -1 if not implemented,

not know by the implementor or irrelevant.