pageCountIn

open override fun pageCountIn(chapter: Int): Int(source)

The pages the page tree really holds. /Count is the number of leaves under a page tree node (ISO 32000-1, 7.7.3.2), and a damaged file can declare more or fewer than it has, so the leaves decide. A viewer that trusted a larger count read past the end of pages (#329).