Device-dependent vs device-independent colour
/DeviceGray, /DeviceRGB, /DeviceCMYK. These specify colour values without defining what those values mean in absolute terms. The output colour is determined by the rendering device.
Device-independent (CIE-based): /CalGray, /CalRGB, /Lab, /ICCBased. These specify colour relative to CIE reference values. /ICCBased is the most flexible and commonly used, as it can describe any device colour space using an embedded ICC profile.ICC profiles in PDF
/Subtype /ICCBased. The /N entry specifies the number of colour components (1 for greyscale, 3 for RGB/Lab, 4 for CMYK). The raw ICC profile binary is the stream data.
Common ICC profiles embedded in PDFs:
sRGB IEC61966-2.1 — The sRGB standard colour space, which approximates the gamut of a typical consumer display. PDFs created from Microsoft Office, web screenshots, and most consumer cameras embed sRGB. Any RGB image without a specific ICC profile is typically assumed to be sRGB by modern PDF viewers.
Adobe RGB (1998) — A wider-gamut RGB space used in professional photography. Covers more of the printable gamut than sRGB, making it better suited for high-quality print reproduction of photographic content.
ISO Coated v2 (Fogra 39) — The standard CMYK profile for European offset printing on coated paper. Referenced by PDF/X-4 and commonly embedded in print-ready PDFs targeting European commercial printing.
SWOP (US Web Coated) — The standard CMYK profile for US offset printing. Used in PDF/X files targeting US commercial printing.
Embedding vs. assuming — PDF/X requires all colour content to either use device-independent colour spaces with embedded ICC profiles, or to use device-dependent spaces only when the output intent defines their interpretation. PDF/A requires an output intent for any device-dependent colour that appears in the document.Output intents in PDF/X and PDF/A
/OutputIntents array in the PDF document catalogue. It defines how device-dependent colours (DeviceGray, DeviceRGB, DeviceCMYK) in the document should be interpreted.
PDF/X output intents — PDF/X (the print-oriented PDF standard, ISO 15930) requires an output intent that either:
- References a named printing condition from the standard registry (e.g., FOGRA39, SWOP2006_Coated3v2), or
- Embeds an ICC profile that characterises the target printing condition.
PDF/X-1a requires CMYK + spot only, with a CMYK output intent. PDF/X-4 allows RGB and CMYK with ICC-based colour management.
PDF/A output intents — PDF/A (the archiving standard, ISO 19005) requires an output intent if the document contains device-dependent colour. This ensures that the document's colours can be reproduced correctly in the future — even if the original display devices are no longer available.
Rendering intents — Separate from output intents, rendering intents specify how out-of-gamut colours should be handled during colour conversion. The four rendering intents defined in the ICC specification are: Perceptual (compress entire gamut to fit, preserving relationships), Relative Colorimetric (clip out-of-gamut colours, adapt white point), Absolute Colorimetric (clip out-of-gamut, preserve absolute white/black), and Saturation (preserve saturation for business graphics). The default for photographic content is Perceptual or Relative Colorimetric.