ContentStreamWriter

Serializes a list of Operations back to content-stream bytes — the inverse of io.github.yuroyami.kitepdf.content.ContentStreamParser. Each operation writes its operands (space-separated, via PdfObjectWriter) then the operator keyword; inline images are written back verbatim from their captured source.

Functions

Link copied to clipboard
fun serialize(operations: List<Operation>): ByteArray