Optionalurl: string | ArrayBuffer | Blob | BookOptionsOptionaloptions: BookOptionsGet a canonical link to a path
the canonical path string
Get the cover url
coverUrl
Destroy the Book and all associated objects
Find a DOM Range for a given CFI Range
a epub cfi range
Generates the Book Key using the identifier in the manifest or other string provided
Optionalidentifier: stringto use instead of metadata identifier
key
Load a resource from the Book
path to the resource to load
Optional_type: stringreturns a promise with the requested resource
Sugar to render a book to an element
element or string to add a rendition to
Optionaloptions: RenditionOptionsResolve a path to it's absolute position in the Book
Optionalabsolute: booleanforce resolving the full URL
the resolved path string
Gets a Section of the Book from the Spine
Alias for book.spine.get
Set if request should use withCredentials
Set headers request should use
An Epub representation with methods for the loading, parsing and manipulation of its contents.
Param: url
Param: options
Param: options.requestMethod
a request function to use instead of the default
Param: options.requestCredentials
send the xhr request withCredentials
Param: options.requestHeaders
send the xhr request headers
Param: options.encoding
optional to pass 'binary' or base64' for archived Epubs
Param: options.replacements
use base64, blobUrl, or none for replacing assets in archived Epubs
Param: options.canonical
optional function to determine canonical urls for a path
Param: options.openAs
optional string to determine the input type
Param: options.store
cache the contents in local storage, value should be the name of the reader
Returns
Example
Example