KiteDocument

interface KiteDocument

A parsed document from any handler: the fz_document equivalent. Lets a viewer treat a io.github.yuroyami.kitepdf.PdfDocument and an io.github.yuroyami.kitepdf.epub.EpubDocument uniformly.

Properties

Link copied to clipboard

Title/authors/language; defaults empty so third-party implementors don't break.

Link copied to clipboard

The navigation tree (PDF bookmarks / EPUB table of contents) with destinations resolved to page indices; empty when the document has none.

Link copied to clipboard
abstract val pageCount: Int

Number of pages.

Link copied to clipboard
abstract val pages: List<KitePage>

The pages, in reading order.