Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents an EPUB source publication that can be loaded into a ReadingSystemEngine.

Hierarchy

Index

Methods

destroy

  • destroy(): void
  • Destroy this instance, allowing used resources to be garbage collected.

    Returns void

fetchMediaOverlay

  • Fetches and parses a EPUB Media Overlay by its URL.

    Parameters

    • url: URL

    Returns Promise<IFetchMediaOverlayResponse>

    Resolved with the parsed Media Overlay, or rejected if the no Media Overlay was found.

fetchNavigationDocument

  • Fetches the EPUB NCX or Navigation as an XML document. Use ReaderPublication.fetchPublicationNavigation() to fetch a parsed and generalized navigation structure.

    Returns Promise<IEpubNavigationDocument>

getContentDocumentByUrl

  • Allows you to get any HTML/XHTML or SVG resource in the manifest by URL as an IEpubContentDocument.

    The url must be relative the EpubOcfResourceProvider.getBaseUrl(). Example: let url = new URL('book/chapter-1.html', ocfResourceProvider.getBaseUrl());

    Parameters

    • url: string | URL

    Returns IEpubContentDocument

getCoverImageResourceUrl

  • getCoverImageResourceUrl(): URL
  • Get the cover image resource for this publication.

    Returns URL

getDefaultLayout

getEpubResourceProvider

  • Get the EpubResourceProvider for this publication. This can be used to retrieve resources that are part of the EPUB package.

    Returns IResourceProvider

getFormatExtensions

getHashSignature

  • getHashSignature(): string
  • Get a generated hash signature of the publication, intended to uniquely identify this publication. The hash signature is not the same as the publication id as the hash signature always changes when the publication data changes in any way. The uniqueness of the signature depends on how the publication was loaded. Please refer the implementation responsible for loading this instance. For example, for EPUB see OcfResourceProvider.

    Returns string

getMediaType

getMetadata

getOpfDocument

  • getOpfDocument(): XMLDocument
  • Get the source OPF Document for this publication.

    Returns XMLDocument

getOpfDocumentUrl

  • getOpfDocumentUrl(): URL
  • Get the URL to the OPF Document.

    Returns URL

getPageProgressionDirection

getPreferredFlowMode

getPreferredOrientation

getPreferredSyntheticSpreadBehavior

getSpine

getType

  • Get the type of publication this instance represents.

    This allows you to cast an IPublication instance to a more specific subtype. See PublicationType for how values map to specific IPublication types.

    Returns PublicationType

isDestroyed

  • isDestroyed(): boolean

toJSON

Generated using TypeDoc