EpubParser
class EpubParser(httpClient: HttpClient = DefaultHttpClient(), reflowablePositionsStrategy: EpubPositionsService.ReflowableStrategy = EpubPositionsService.ReflowableStrategy.recommended) : PublicationParser
Parses a Publication from an EPUB publication.
Parameters
httpClient
Http client to use to fetch resources outside the asset.
reflowablePositionsStrategy
Strategy used to calculate the number of positions in a reflowable resource.
Constructors
Link copied to clipboard
constructor(httpClient: HttpClient = DefaultHttpClient(), reflowablePositionsStrategy: EpubPositionsService.ReflowableStrategy = EpubPositionsService.ReflowableStrategy.recommended)
Functions
Link copied to clipboard
open suspend override fun parse(asset: Asset, warnings: WarningLogger? = null): Try<Publication.Builder, PublicationParser.ParseError>
Constructs a Publication.Builder to build a Publication from a publication asset.
Link copied to clipboard