Package-level declarations
Types
A parsed EPUB, reflowed onto fixed-size pages and rendered through the shared KiteCanvas the PDF engine uses. The second document handler on :kitepdf-core.
Raised when bytes are not a readable EPUB: no container, no OPF, empty spine.
A tappable link region on an EpubPage. rect is in display space (y-down; y-min stored in KiteRectangle.bottom). href is either zipPath#fragment (internal, resolve with the document's href navigation) or an external URL. kind says what the link is for, such as a note reference, which a reader can open in place with EpubDocument.linkTarget.
What a link is for, read from the link's own markup: its epub:type from the EPUB 3 Structural Semantics Vocabulary, its DPUB-ARIA role, or the rel that EPUB 2 converters write. A reader can open a note in place instead of turning the page. EpubLink.kind carries it.
The element an internal link points at, read from the book's markup without laying its chapter out. EpubDocument.linkTarget builds it.
Publication metadata surfaced to a reader UI: Dublin Core fields plus the cover image and reading direction. Paths are zip-absolute.
One stop in a page's reading order: what a screen reader would announce, in the order it would announce it.
Reader layout settings. All values in points. Change them at runtime with EpubDocument.withSettings (or the withFontSize/withPageSize/withMargin shorthands) to re-flow without re-parsing the book.
What the element a link points at is, read from its own epub:type or role, else from the section that holds it.
Generic font family a reader app can force via EpubSettings.fontFamily.
A publication's navigation tree, from EPUB 3 nav.xhtml or EPUB 2 toc.ncx.
One table-of-contents node. spineIndex is -1 when the target isn't in the spine.
Moved to core so non-EPUB zip formats (CBZ) can read archives too.
Functions
Opens the EPUB at path, loading the WHOLE file into memory first (thin sugar over EpubDocument.open; there is no incremental file reader).
Opens the EPUB at path, loading the WHOLE file into memory first (thin sugar over EpubDocument.open; there is no incremental file reader).
Opens the EPUB at path, loading the WHOLE file into memory first (thin sugar over EpubDocument.open; there is no incremental file reader).