Native ICC Black Point Compensation

Version 2.1206.1 adds native UseBlackPtComp graphics-state handling to Cairo rendering, with actual relative-colorimetric ICCBased black-point conversion

PDF state and conversion

UseBlackPtComp accepts the case-sensitive names ON, OFF and Default; ON enables the CMM compensation flag, whilst OFF and the processor's Default policy clear it

An absent or null entry preserves the current setting, q/Q restores it, and Form content inherits the enclosing state; invalid types or names are diagnosed before output publication

The effective flag participates in both forward and reverse ICC transform cache keys, so toggling state cannot reuse a transform created for the other setting

AbsoluteColorimetric conversion always disables the compensation flag, including images whose Intent overrides the enclosing graphics-state intent

Actual consumers

The state is passed through fill/stroke colour, ICC replacement and alternate spaces, images, Form and group conversions, soft masks, sampled shading and mesh colour conversion

Colour-conversion state is established before building a soft mask, independently of the order of entries in its graphics-state dictionary

Pattern content inherits its parent stream's initial graphics state; a shading pattern can override compensation through its own ExtGState

Compensation entries inside an uncoloured pattern or d1 Type3 character procedure are ignored, including nested content scopes

Final page-group conversion uses the processor's default relative-colorimetric intent and cleared compensation flag, rather than the last painted object's setting

Qualified behaviour and remaining boundaries

A real ICC input with a non-zero black floor produces grey 99 with relative-colorimetric compensation disabled and black 0 when enabled; native path, image, Form, group and shading consumers preserve that distinction

LittleCMS can apply intrinsic black-point mapping to some ICC v4 perceptual and saturation transforms even when the explicit flag is cleared; complete forced-OFF behaviour for those profiles/intents remains unfinished

CalGray, CalRGB and Lab use a separate native calibrated-colour compensation route, introduced in version 2.1206.2

Black generation and undercolour removal during DeviceRGB-to-DeviceCMYK conversion remain separate work, as do unrestricted ICC/profile compatibility and cross-platform qualification