ContentStreamBuilder
Builds a page content stream (ISO 32000-1 §8–§9) from typed drawing operations, emitting the raw operator bytes. Each PDF operator takes its operands first, then the operator keyword: r g b rg, x y m, (str) Tj.
Coordinates are in the default user space (origin bottom-left, points). Numbers are formatted without scientific notation (via PdfObjectWriter); names and strings are escaped the same way the serializer escapes them.
Fonts and images are referenced through fontResolver / imageResolver, which map a StandardFont / PdfImage to the resource name the owning PdfBuilder will register in /Resources.
Functions
Intersect the clipping path with the current path using the nonzero winding rule (W). Per the spec, a path-painting operator must follow — call endPath to clip without also painting the path, e.g. rectangle(...); clip(); endPath().
Like clip, but with the even-odd rule (W*).
Escape hatch: append literal content-stream source, followed by a newline.