int getNPages()
Returns the number of pages in the document or -1 if the document has not been completely paginated.
-1
document has not been completely paginated.