Package-level declarations
Properties
Default post-decoding response-body ceiling for remote documents (128 MiB). KitePDF holds the download and parsed document in memory at once, so an unbounded body can otherwise terminate a mobile or browser host process.
Default response-body ceiling for one resource that a book names by URL (16 MiB). A book keeps every remote resource in memory for its life, and holds 32 MiB of them at most.
Functions
Downloads url and returns the raw bytes, without opening anything.
downloadBytes with an explicit response-body maxBytes ceiling.
A fetcher for the resources that a book names by an absolute https URL, such as a font or an image on a web server (EPUB 3.3, 3.6), on your client (#38). Set it on the book's settings:
Downloads url and opens it as whichever format it turns out to be.
openUrl, but null instead of an exception on any failure, network included.
openUrlOrNull with an explicit response-body maxBytes ceiling.