PublicationStyleOptions

data class PublicationStyleOptions(val defaultFontFamily: PublicationStyleOptionsDefaultFontFamily = PublicationStyleOptionsDefaultFontFamily.SERIF, val fontSet: PublicationStyleFontSet? = null, val fontSizeScaleFactor: Double = 1.0, val lineHeightScaleFactor: Double = 1.0, val pageMargins: RectMargins? = null, val palette: PublicationStylePalette? = null, val textAlignment: PublicationStyleTextAlignmentOptions? = null)

Allows you to set styling options of the rendered publication.

Note that support depends on the publication format. Fixed-layout formats such as PDF and fixed-layout EPUB will by default NOT be affected by these options, with the exception of defaultFontFamily (see defaultFontFamily documentation). Some of these options can be enabled for fixed-layout EPUBs by setting IEpubReaderPublicationOptions.fixedLayoutStyleOptions.

Constructors

Link copied to clipboard
fun PublicationStyleOptions(defaultFontFamily: PublicationStyleOptionsDefaultFontFamily = PublicationStyleOptionsDefaultFontFamily.SERIF, fontSet: PublicationStyleFontSet? = null, fontSizeScaleFactor: Double = 1.0, lineHeightScaleFactor: Double = 1.0, pageMargins: RectMargins? = null, palette: PublicationStylePalette? = null, textAlignment: PublicationStyleTextAlignmentOptions? = null)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun serialize(generator: JsonGenerator)

Properties

Link copied to clipboard

The default font-family to use for documents that has does not defined a font-family. Defaults to 'serif'

Link copied to clipboard

NOTE: This interface is being simplified to be easier to use and will be released in an upcoming release.

Link copied to clipboard

Applies font-size scaling to the rendered publication. This is typically only supported on reflowable content documents and ignored otherwise.

Link copied to clipboard

Applies line-height scaling to the rendered publication. This is typically only supported on reflowable content documents and ignored otherwise.

Link copied to clipboard

Sets the individual page margins. This is typically only supported on reflowable content documents and ignored otherwise.

Link copied to clipboard

Allows you to override the palette used for rendering the publication.

Link copied to clipboard

Allows overriding the text alignment used in the publication