RenderedDocument

class RenderedDocument(val content: ByteArray, val fileName: String?, val contentType: String?)

A generated document.

Constructors

Link copied to clipboard
constructor(content: ByteArray, fileName: String?, contentType: String?)

Properties

Link copied to clipboard

Document bytes.

Link copied to clipboard

MIME type from the response, when Carbone provided one.

Link copied to clipboard

File name from Content-Disposition, when Carbone provided one.

Functions

Link copied to clipboard

Wraps content in a fresh InputStream.

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
suspend fun writeTo(path: Path): Path

Writes content to path, overwriting it if it exists.