Package-level declarations

Types

Possible values for CustomCssValuePenalizerNumericCondition.comparator

Link copied to clipboard
data class CustomCssValuePenalizerOptions(val fragmentation: List<CustomCssValuePenalizerRule> = emptyList(), val orphans: List<CustomCssValuePenalizerRule> = emptyList(), val widows: List<CustomCssValuePenalizerRule> = emptyList())
Link copied to clipboard
data class CustomCssValuePenalizerRule(val numericValueCondition: CustomCssValuePenalizerNumericCondition? = null, val penalty: Int, val properties: List<CustomCssValuePenalizerRuleProperties>, val values: List<String>? = null)
Link copied to clipboard

Possible values for CustomCssValuePenalizerRule.properties

Link copied to clipboard
data class CustomElementPenalizerOptions(val fragmentation: List<CustomElementPenalizerRule> = emptyList(), val orphans: List<CustomElementPenalizerRule> = emptyList(), val widows: List<CustomElementPenalizerRule> = emptyList())
Link copied to clipboard
data class CustomElementPenalizerOverrideRule(val penalty: Int, val selector: String)
Link copied to clipboard
data class CustomElementPenalizerRule(val overrides: List<CustomElementPenalizerOverrideRule>? = null, val penalty: Int, val selector: String, val skipIfFragmented: Boolean? = null)
Link copied to clipboard
data class CustomForcedPageBreakOptions(val breakAfterRules: List<CustomForcedPageBreakOptionsRuleDef> = emptyList(), val breakBeforeRules: List<CustomForcedPageBreakOptionsRuleDef> = emptyList(), val breakMarkersRules: List<CustomForcedPageBreakOptionsRuleDef> = emptyList())

Options for the plugin ForcedBreakSelectorPlugin

Link copied to clipboard
data class CustomForcedPageBreakOptionsRuleDef(val breakMode: ForcedBreakMode, val selector: String)
Link copied to clipboard
data class EpubCharacterPageCountEstimationOptions(val audioElementWeight: Int = 50, val iframeElementWeight: Int = 50, val imageElementWeight: Int = 50, val videoElementWeight: Int = 50)
data class EpubCharactersContentPositionTimelineMappingOptions(val audioElementWeight: Int = 50, val iframeElementWeight: Int = 50, val imageElementWeight: Int = 50, val videoElementWeight: Int = 50, val whitespaceBehaviour: EpubContentPositionTimelineWhitespaceBehavior = EpubContentPositionTimelineWhitespaceBehavior.COLLAPSE)

Options used when creating EPUB ContentPositionTimeline objects with CHARACTERS as unit of measurement.

Link copied to clipboard

Base interface for all options types that can be used when creating ContentPositionTimeline for EPUB Publications.

Defines how whitespace characters should be handled in EPUB ContentPositionTimelines.

Link copied to clipboard
data class EpubElementWhitelistOptions(val attributeNames: List<String> = emptyList(), val tagNames: List<String> = emptyList())
Link copied to clipboard
data class EpubFixedLayoutStyleOptions(val allowFontSetCustomization: Boolean = false, val allowPaletteCustomization: Boolean = false)

By default, publicationStyleOptions set by calling ReaderView.setOptions() only applies to reflowable documents and are ignored by fixed-layout documents.

Link copied to clipboard
data class EpubMediaOverlayOptions(val activeElementAncestorClass: String? = null, val fallbackActiveElementClass: String = "-epub-media-overlay-active", val fallbackPlaybackActiveClass: String = "-epub-media-overlay-playing")
Link copied to clipboard

Base type used for all algorithms that handle page count estimation of reflowable content documents. See IEpubReaderPublicationOptions.pageCountEstimationAlgorithm for more information.

Link copied to clipboard

Available algorithms when estimating the number of pages in reflowable content-documents. Number of pages estimation is used by the PageProgressionTimeline when the ReaderView option pageProgressionTimelineOptions.forceCompleteRendition is set to false.

Link copied to clipboard
data class EpubReaderPublicationCustomCssOptions(val injectionPointEnd: List<String> = emptyList(), val injectionPointStart: List<String> = emptyList())
Link copied to clipboard
data class EpubReaderPublicationOptions(val allowDocumentScripting: Boolean = true, val customPublicationCss: EpubReaderPublicationCustomCssOptions = EpubReaderPublicationCustomCssOptions(), val elementWhitelistOptions: EpubElementWhitelistOptions = EpubElementWhitelistOptions(), val enableMediaStreaming: Boolean = false, val fixedLayoutStyleOptions: EpubFixedLayoutStyleOptions = EpubFixedLayoutStyleOptions(), val mediaOverlayOptions: EpubMediaOverlayOptions = EpubMediaOverlayOptions(), val pageCountEstimationAlgorithm: EpubPageCountEstimationAlgorithm = EpubPageCountEstimationAlgorithm.FileSize(), val preventDefaultContextMenuOnMediaElements: Boolean = false, val reflowOptions: EpubReflowOptions = EpubReflowOptions(), val remoteResourcesNonScriptedDocumentsOptions: EpubRemoteResourceOptions = EpubRemoteResourceOptions(), val remoteResourcesScriptedDocumentsOptions: EpubRemoteResourceOptions = EpubRemoteResourceOptions(), val textSplitOptions: EpubTextNodeSplitOptions = EpubTextNodeSplitOptions(), val additionalLocatorUrls: List<String> = emptyList(), val clipboardOptions: ReaderPublicationClipboardOptions = ReaderPublicationClipboardOptions(), val defaultLocatorUrl: String? = null, val preventDefaultContextMenu: Boolean = false, val preventDragAndDropActions: Boolean = true)

Options related to processing and presentation of EPUB publications.

Link copied to clipboard
data class EpubReflowOptions(val plugins: EpubReflowPluginOptions = EpubReflowPluginOptions(), val removeTopMarginsOnFragmentedElements: Boolean = false)

Options configuring how the reflow engine divide content documents into pages. These options will be further documented in a future version of the framework.

Link copied to clipboard
data class EpubReflowPluginOptions(val cssForcedPageBreak: Boolean = true, val customCssValuePenalizer: CustomCssValuePenalizerOptions? = null, val customElementPenalizer: CustomElementPenalizerOptions? = null, val customForcedPageBreak: CustomForcedPageBreakOptions? = null, val floatingOrphanPenalizer: FloatingOrphanPenalizerOptions? = null, val fragmentableElements: FragmentableElementsOptions? = null, val listBreak: ListBreakOptions? = null, val mediaShrink: MediaShrinkReflowPluginOptions? = null, val orphanTextPattern: OrphanTextPatternOptions? = null, val unforcedTextBreak: UnforcedTextBreakOptions? = null, val verticalWhitespacePenalizer: VerticalWhitespacePenalizerOptions? = null)
Link copied to clipboard
data class EpubRemoteResourceOptions(val policyType: EpubRemoteResourcePolicyType = EpubRemoteResourcePolicyType.DENY_ALL, val whitelistDirectives: List<EpubRemoteResourceWhitelistDirective> = emptyList())

Options that defines if content-documents can load remote resources. What type of remote resources they can load, and from where these can be loaded.

Link copied to clipboard

Defines what access policy to use for remote resources. Used in IEpubRemoteResourceOptions.

Possible values for EpubRemoteResourceWhitelistDirective.directive

Link copied to clipboard
class EpubSyncMediaTextRef(val moContainerPath: List<Int>, val moNodeIndex: Int, val objectIndex: Int, val selector: String) : SyncMediaObjectRef

A reference to a element in a Media Overlay (MO) SMIL file.

Link copied to clipboard
data class EpubTextNodeSplitOptions(val enableTextSplit: Boolean = false, val maxTextNodeLength: Int = 5000)

Options related to the splitting of very long text nodes.

data class EpubWordsContentPositionTimelineMappingOptions(val audioElementWeight: Int = 10, val iframeElementWeight: Int = 10, val imageElementWeight: Int = 10, val videoElementWeight: Int = 10)

Options used when creating EPUB ContentPositionTimeline objects with WORDS as unit of measurement.

Link copied to clipboard
data class FloatingOrphanPenalizerOptions(val penalty: Int)
Link copied to clipboard

Describes how the next page after the forced page break should be formatted.

Link copied to clipboard
data class FragmentableElementsOptions(val allowByDefault: Boolean, val blacklistSelectors: List<String> = emptyList(), val blacklistStyles: List<FragmentableElementsOptionStyleRule> = emptyList(), val whitelistSelectors: List<String> = emptyList())

Possible values for FragmentableElementsOptionStyleRule.property

Link copied to clipboard
data class ListBreakOptions(val orphans: ListBreakOptionsPenaltyRule? = null, val widows: ListBreakOptionsPenaltyRule? = null)
Link copied to clipboard
data class ListBreakOptionsPenaltyRule(val minItems: Int, val penalty: Int)
Link copied to clipboard
data class MediaShrinkReflowPluginOptions(val activationThreshold: Double = 0.15, val maxShrinkFactor: Double = 0.7, val penaltyAtMaxShrinkage: Int = 10)
Link copied to clipboard
Link copied to clipboard
data class OrphanTextPatternOptionsRule(val flags: String? = null, val pattern: String, val penalty: Int)
Link copied to clipboard
data class UnforcedTextBreakOptions(val loneWidowNotFragmented: UnforcedTextBreakOptionsRule? = null, val orphans: UnforcedTextBreakOptionsRule? = null, val textFragmentationPenalty: Int? = null, val widows: UnforcedTextBreakOptionsRule? = null)
Link copied to clipboard
data class UnforcedTextBreakOptionsRule(val minLines: Int? = null, val minLinesFromCss: Boolean? = null, val penalty: Int? = null)
Link copied to clipboard
Link copied to clipboard
data class VerticalWhiteSpacePenaltyStop(val penalty: Int, val whitespaceRatio: Double)