getNPages

open fun getNPages(): Int

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

Return

the number of pages in the document or -1 if the document has not been completely paginated.