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
fun Character(options: EpubCharacterPageCountEstimationOptions = EpubCharacterPageCountEstimationOptions())

Types

Link copied to clipboard
object Companion

Functions

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

Properties

Link copied to clipboard

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