toHtml

fun ReportNode.Document.toHtml(ctx: RenderContext? = null, cssPath: Path? = null, css: String? = null): String(source)

Renders this document to a complete HTML page String (the same content writeHtml writes to a file) without creating any file. Useful for carrying a rendered report across a process/network boundary or embedding it.

CSS selection follows the same priority order as writeHtml.

Return

the complete HTML representation of this document

Parameters

ctx

shared render configuration

cssPath

path to an external CSS file; when non-null a <link> tag is emitted

css

inline CSS string; only used when cssPath is null