SingleDocumentScrollRendererOptions

data class SingleDocumentScrollRendererOptions(val maxWidth: Length? = null, val readingAreaOffsetBottom: Length? = null, val readingAreaOffsetTop: Length? = null, 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
fun SingleDocumentScrollRendererOptions(maxWidth: Length? = null, readingAreaOffsetBottom: Length? = null, readingAreaOffsetTop: Length? = null, ignoreAspectRatio: Boolean = false, pageBackgroundColor: String = "#ffffff")

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun serialize(generator: JsonGenerator)

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.