print Text
fun ReportNode.Document.printText(out: PrintWriter = PrintWriter(System.out, true), ctx: RenderContext? = null)(source)
Renders this document as plain text and writes it to out.
Defaults to System.out with auto-flush, making it a direct console-output call:
model.toReport().printText() // → System.out
model.toReport().printText(PrintWriter(System.err)) // → System.err
model.toReport().printText(myWriter) // → any PrintWriterContent copied to clipboard
Parameters
out
target writer; defaults to a PrintWriter wrapping System.out
ctx
shared render configuration