Skip to content

API reference / Common / Engine types / RenderStyle

Interface: RenderStyle ​

Per-paint-op call-uniform compositing state.

PDF Extended Graphics State (gs) splits per-op state into three groups: the stroke-vs-non-stroke pair (CA/ca, OP/op) which lives on StrokingStyle / NonstrokingStyle, the soft mask which lives as its own field on each variant (it has independent scoping rules), and the call-uniform group below — blend mode, alpha-is-shape (AIS), overprint mode (OPM), rendering intent (RI).

These are the imaging-model knobs that don't nest down a render tree — they apply to a single paint op and don't compose. Transform and clip, which do nest, stay on the surface graphics-state stack instead.

Properties ​

PropertyDescription
blendMode
BlendMode
Blend mode (mix + Porter-Duff compositing).
alphaIsShape
boolean
Alpha-is-shape (AIS): treat alpha as shape coverage rather than opacity when compositing. PDF spec 11.3.7.2.
overprintMode
OverprintMode
Overprint mode (OPM). Only consulted when an overprint flag is set on the NonstrokingStyle or StrokingStyle.
renderingIntent
RenderingIntent
Rendering intent for color-space conversion.