getPageCount

@IntRange(from = "-1")
abstract fun getPageCount(): Int

Gets number of pages in the document.

Return

Number of pages in the displayed document, -1 if document is null.