EpubWriter

class EpubWriter(bookProcessor: BookProcessor = BookProcessorPipeline( mutableListOf(StylesheetLinker()) ))(source)

Generates an EPUB file. Not thread-safe, single-use.

The default bookProcessor is a pipeline containing StylesheetLinker, which auto-injects <link rel="stylesheet"> tags for every stylesheet registered via io.documentnode.epub4kmp.domain.Book.addStylesheet. Pass your own BookProcessor to opt out or to compose additional steps.

Constructors

Link copied to clipboard
constructor(bookProcessor: BookProcessor = BookProcessorPipeline( mutableListOf(StylesheetLinker()) ))

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun write(book: Book, sink: Sink)

Writes the given book to sink as a complete EPUB ZIP archive.