Skip to content

MdiEpubExportOptions

MdiEpubExportOptions = EpubExportOptions & object

Defined in: nodejs/packages/mdi/src/index.ts:48

Options for a configured EPUB export. The profile controls metadata, chapter splitting and typography; cover supplies the actual image data.

optional assets?: MdiImageAssets

When set, embed these bytes instead of the EPUB image fallback.

optional author?: string

optional chapterSplitLevel?: "h1" | "h2" | "h3" | "none"

optional coverImage?: Uint8Array

Shorthand for cover: { data: coverImage, mediaType: coverMediaType }.

optional coverMediaType?: EpubCover["mediaType"]

optional date?: string

optional fontFamily?: string

optional fontSize?: number

Body type size in typographic points.

optional fullwidthSpaceIndent?: boolean

Use an ideographic-space-compatible first-line indent.

optional gridMode?: "strict" | "typographic"

EPUB has no fixed pages; use typographic when overriding type metrics.

optional identifier?: string

optional language?: string

optional lineSpacing?: number

Baseline multiplier, for example 1.5 for one-and-a-half spacing.

optional maxImageBytes?: number

Per-image byte limit passed to the core. Omission or 0 uses the 25MB default.

optional publisher?: string

optional textIndent?: number

optional title?: string

Ergonomic aliases merged into profile.metadata.

optional verticalWriting?: boolean

Ergonomic aliases merged into profile.typesetting and profile.epub.

MIT License© 2026 Iktahana