Character

class Character(val options: EpubCharacterPageCountEstimationOptions = EpubCharacterPageCountEstimationOptions()) : EpubPageCountEstimationAlgorithm

Number of pages are estimated based on the number of characters in the content-documents. This algorithm is a bit slower than the FILE_SIZE algorithm, but will provide a more correct result.

Note that this algorithm will fetch all content-documents in the publication which may cause extra chunks to be downloaded if using a remote RandomAccessDataSource, which may increase time until the PageProgressionTimeline is available.

Constructors

Link copied to clipboard
constructor(options: EpubCharacterPageCountEstimationOptions = EpubCharacterPageCountEstimationOptions())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The type of page count estimation algorithm. Can be used to determine the subtype of IEpubPageCountEstimationAlgorithm.

Functions

Link copied to clipboard
open override fun serialize(generator: JsonGenerator)