PDF Blend Mode

A blend mode in PDF controls how a source graphic object is composited over a backdrop during transparency rendering. PDF defines 16 blend modes — Normal, Multiply, Screen, Overlay, Darken, Lighten, ColorDodge, ColorBurn, HardLight, SoftLight, Difference, Exclusion (separable), plus Hue, Saturation, Color, Luminosity (non-separable). They correspond directly to CSS mix-blend-mode and Photoshop layer modes.

PDF blend modes determine how a graphics object composites with the content beneath it. When a PDF renderer draws a transparent object over existing page content, the blend mode controls the mathematical operation used to combine the colours of the object (the source) with the colours already on the page (the backdrop). PDF defines 16 blend modes, matching the CSS <code>mix-blend-mode</code> property values that web developers encounter in design tools.

Blend modes are part of the PDF transparency model introduced in PDF 1.4. They are specified via the <code>/BM</code> key in an extended graphics state dictionary (<code>/ExtGState</code>) applied with the <code>gs</code> operator.

The 16 PDF blend modes

PDF defines 16 blend modes organised into four groups:

<strong>Normal group</strong> (no special compositing): <code>Normal</code> — The source colour replaces the backdrop (at full opacity) or blends linearly (at partial opacity). This is the default. <code>Compatible</code> — An alias for Normal, provided for backwards compatibility with PDF 1.3.

<strong>Darken group</strong> (result is darker than source or backdrop): <code>Multiply</code> — Multiplies source and backdrop colour values (0–1 range). Always equal to or darker than both. Equivalent to overlaying two projected transparencies. <code>Darken</code> — Keeps the darker of source or backdrop for each channel. <code>ColorBurn</code> — Darkens the backdrop to reflect the source by increasing contrast.

<strong>Lighten group</strong> (result is lighter than source or backdrop): <code>Screen</code> — Complements of source and backdrop are multiplied. Always equal to or lighter than both. Equivalent to projecting two images on a screen. <code>Lighten</code> — Keeps the lighter of source or backdrop for each channel. <code>ColorDodge</code> — Brightens the backdrop to reflect the source by decreasing contrast.

<strong>Contrast group</strong> (increases contrast): <code>Overlay</code> — Multiply for dark areas, Screen for light areas (based on backdrop luminosity). <code>SoftLight</code> — Similar to Overlay but softer; uses a complex formula for mid-tones. <code>HardLight</code> — Like Overlay but based on source luminosity rather than backdrop. <code>Difference</code> — Subtracts the darker from the lighter of source and backdrop. Produces black where identical, white where maximally different. Useful for spotting alignment differences. <code>Exclusion</code> — Lower contrast version of Difference.

<strong>HSL group</strong> (component-based compositing): <code>Hue</code> — Hue of source, saturation and luminosity of backdrop. <code>Saturation</code> — Saturation of source, hue and luminosity of backdrop. <code>Color</code> — Hue and saturation of source, luminosity of backdrop. Useful for colourising greyscale images. <code>Luminosity</code> — Luminosity of source, hue and saturation of backdrop. Inverse of Color.

Applying blend modes in PDF

Blend modes are set via the graphics state. In a PDF content stream, the graphics state is modified with the <code>gs</code> operator which takes an extended graphics state (ExtGState) dictionary name:

<code>/GS1 gs</code>

The named ExtGState dictionary (defined in the page's /Resources /ExtGState dictionary) contains the /BM entry:

<code>&lt;&lt; /Type /ExtGState /BM /Multiply /ca 0.5 &gt;&gt;</code>

Where <code>/ca</code> is the current non-stroking alpha (opacity). The blend mode applies to all subsequent painting operations until a new graphics state is set or the state is restored with <code>Q</code>.

<strong>Blend modes and transparency groups</strong> — Blend modes interact with transparency groups. A transparency group (a Form XObject with a /Group dictionary) creates an isolated compositing context. Within a group, blend modes composite objects against the group's internal backdrop (the group's contents so far) rather than the page backdrop. When the group is itself composited onto the page, the group's blend mode controls how the entire group composites against the page. This two-level compositing (within group, then group onto page) means the visual result of a blend mode depends on whether there is an enclosing transparency group. See <a href="/glossary/pdf-transparency-model" target="_blank" rel="noopener">PDF Transparency Model</a> for the full transparency group architecture.

Blend modes in print production

In print production workflows (PDF/X documents), blend modes require careful handling:

<strong>Spot colour blending</strong> — Blend modes applied to spot colour channels can produce unexpected results because the compositing maths assumes additive or subtractive colour model arithmetic that does not directly apply to spot colours. Many PDF/X validators warn on blend modes applied to spot colour objects. See <a href="/glossary/pdf-spot-colour" target="_blank" rel="noopener">PDF Spot Colour</a> for spot colour context.

<strong>Overprint interaction</strong> — Blend modes interact with overprint settings. When overprint is enabled, the "knockout" model is replaced by an "overprint" model that composites the source over the backdrop using the normal blend mode — but if a different blend mode is also specified, the interaction can be complex and RIP-dependent.

<strong>Flattening for legacy RIPs</strong> — Older print RIPs that do not support PDF transparency natively require transparency flattening before output. Flattening converts blend mode transparency into rasterised regions that simulate the blending effect without transparency operators. The accuracy of flattened blend modes depends on the flattening quality setting — lower settings introduce visible approximations at blend boundaries.

The <a href="https://www.adobe.com/content/dam/acom/en/devnet/pdf/pdf_reference_archive/blend_modes.pdf" target="_blank" rel="noopener">Adobe blend mode specification</a> provides the exact mathematical formulas for all 16 modes.

Frequently asked questions

Why do blend modes sometimes look different between PDF viewers?

Blend mode rendering differences between PDF viewers have two main causes. First, colour space handling: the blend mode mathematics operates in a specific colour space, and the colour space used for compositing differs between viewers — particularly for CMYK documents, where different viewers may convert to RGB for screen rendering or composite in CMYK, producing different results. Second, transparency group handling: whether isolated and knockout group flags are respected correctly varies between viewer implementations. For screen display, minor differences are cosmetic. For print production, these differences are why PDF/X workflows require soft-proofing in the target RIP rather than relying on Acrobat or macOS Preview for colour accuracy.

What is the CSS mix-blend-mode equivalent for PDF blend modes?

CSS mix-blend-mode values correspond directly to PDF blend modes: normal, multiply, screen, overlay, darken, lighten, color-dodge, color-burn, hard-light, soft-light, difference, exclusion, hue, saturation, color, luminosity all have identical PDF counterparts (with CSS kebab-case corresponding to PDF PascalCase). The mathematical definitions are identical, though the colour space behaviour can differ — CSS compositing operates in sRGB, while PDF compositing may operate in different colour spaces depending on the transparency group colour space.

Can blend modes cause problems in PDF/A documents?

Yes. PDF/A-1 prohibits transparency entirely, including blend modes — PDF/A-1 documents must have all transparency flattened before archiving. PDF/A-2 and later allow transparency including blend modes, but require that all transparency is properly specified with valid parameters. A blend mode of /Normal with full opacity is allowed at any conformance level (it is equivalent to no blending). Non-Normal blend modes are allowed in PDF/A-2 and -3 but require that the document's colour spaces are correctly specified so that the blend mode compositing is deterministic. Validation tools will flag blend modes in PDF/A-1 documents as errors requiring remediation.