OutputFormat

sealed interface OutputFormat

The convertTo field: a plain format name or a format with typed options.

Inheritors

Types

Link copied to clipboard
object Companion

Ready-made simple formats, plus constructors for the formats that carry options.

Link copied to clipboard
data class Csv(val options: CsvOptions = CsvOptions()) : OutputFormat

CSV output. @property options formatOptions for the CSV converter.

Link copied to clipboard
data class Jpg(val options: ImageOptions = ImageOptions()) : OutputFormat

JPG output. @property options formatOptions for the image converter.

Link copied to clipboard
data class Pdf(val options: PdfOptions = PdfOptions()) : OutputFormat

PDF output. @property options formatOptions for the PDF converter.

Link copied to clipboard
data class Png(val options: ImageOptions = ImageOptions()) : OutputFormat

PNG output. @property options formatOptions for the image converter.

Link copied to clipboard
data class Simple(val formatName: String) : OutputFormat

Any format Carbone supports without options: docx, xlsx, odt, html, txt, epub, md, svg, webp...

Properties

Link copied to clipboard
abstract val formatName: String

Carbone format name sent as (or inside) convertTo.