ColorSpaceConstraint
in package
implements
ConformanceConstraint
FinalYes
PDF/A clause 6.2: Device-dependent color spaces are only allowed when a matching OutputIntent is present.
This is an advisory check: the constraint verifies that either the document uses only device-independent color spaces (CalGray, CalRGB, Lab, ICCBased) or has an OutputIntent with an embedded ICC profile to anchor device-dependent color (DeviceRGB, DeviceCMYK, DeviceGray).
A full check would require parsing every content stream operator for color space usage — this constraint checks at the structural level.
Table of Contents
Interfaces
- ConformanceConstraint
- A single category of conformance checks (e.g. font embedding, encryption).
Methods
- check() : array<int, ConformanceViolation>
- Check the document against this constraint for the given profile.
Methods
check()
Check the document against this constraint for the given profile.
public
check(DocumentInspector $inspector, ConformanceProfile $profile) : array<int, ConformanceViolation>
Parameters
- $inspector : DocumentInspector
- $profile : ConformanceProfile