SingleDocumentScrollRendererOptions

data class SingleDocumentScrollRendererOptions(val maxWidth: Length? = null, val readingAreaOffsetBottom: Length? = null, val readingAreaOffsetTop: Length? = null, val scrollbarPosition: ScrollRendererScrollbarPosition = ScrollRendererScrollbarPosition.DOCUMENT, val ignoreAspectRatio: Boolean = false, val pageBackgroundColor: String = "#ffffff")

Options specific for the SingleDocumentScrollRenderer. See IRendererOptions for additional options that can be used with any Renderer.

Constructors

Link copied to clipboard
constructor(maxWidth: Length? = null, readingAreaOffsetBottom: Length? = null, readingAreaOffsetTop: Length? = null, scrollbarPosition: ScrollRendererScrollbarPosition = ScrollRendererScrollbarPosition.DOCUMENT, ignoreAspectRatio: Boolean = false, pageBackgroundColor: String = "#ffffff")

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Ignore the calculated aspectRatio to take up as much of the available view space as possible.

Link copied to clipboard
val maxWidth: Length? = null

Sets the maximum width of the renderer.

Link copied to clipboard

A CSS color to use as default page background.

Link copied to clipboard

This option describes how far from the bottom of the renderer's visible area the Reading Area will end.

Link copied to clipboard

This option describes how far from the top of the renderer's visible area the Reading Area will start.

Link copied to clipboard

Controls where the vertical scrollbar is placed.

Functions

Link copied to clipboard
fun serialize(generator: JsonGenerator)