Package-level declarations
Types
Colour-space resolution + sample-to-RGB conversion (ISO 32000-1 §8.6).
Parallel offset/colour arrays describing a sampled gradient.
Mutable stack façade. Holds the current state plus a save stack for q/Q.
Graphics state (ISO 32000-1 §8.4).
An XObject Image extracted from a /XObject resource entry (ISO 32000-1 §8.9.5).
Backend that ignores everything — handy for benchmarks and content-stream sanity tests.
The content-stream interpreter — translates parsed Operations into PdfCanvas draw calls while maintaining the full PDF graphics-state stack (ISO 32000-1 §8 + §9).
A PDF function (ISO 32000-1 §7.10). Functions map an n-component input to an m-component output, typically used by shadings, transparency groups, tint transforms, and halftone phase calculations.
A geometric path accumulated by m/l/c/v/y/h/re operators before being painted by S/f/B/n.
Parsed /Pattern resource entry (ISO 32000-1 §8.7).
A PDF shading (ISO 32000-1 §8.7.4). Shadings define smooth color transitions used as fills via the sh content-stream operator or via a shading pattern referenced by SCN/scn.
Records every device call — useful for tests + verifying operator dispatch.
A rectangle in PDF user-space — re-exposed here for the PdfCanvas surface.
Per-BT/ET block text state — reset at BT, mutated by text operators.
Functions
Merge the non-null fields of ext into this state. Spec semantics for gs <name>: only entries present in the ExtGState override; everything else passes through.
Sample a PdfShading.Axial or PdfShading.Radial at evenly-spaced stops between domain[0] and domain[1]. Returns parallel t and RGB arrays the backend uses to build a gradient brush.
Assemble a Kind.RAW image's already-inflated samples into a flat RGBA8888 buffer (R,G,B,A per pixel, row-major, no padding) that a platform backend can wrap in a bitmap.