ICCBased Color Space
Implement ICCBasedColorSpace class wrapping an ICC profile stream.
ContentStreamBuilder and PdfWriter need setFillColorIcc() / setStrokeColorIcc() or a unified Color approach supporting ICC profiles.
PdfSerializer embeds the ICC profile as a stream object, references it from the page resource dictionary's /ColorSpace entry.
Required for valid PDF/A output. OutputIntents reference a destination profile but page content must use matching ICC color space.
Tests: ICC profile stream present in output, /ColorSpace dictionary references profile object, color operators use /CSn cs syntax.
ICCBased Color Space
Implement ICCBasedColorSpace class wrapping an ICC profile stream.
ContentStreamBuilder and PdfWriter need
setFillColorIcc()/setStrokeColorIcc()or a unified Color approach supporting ICC profiles.PdfSerializer embeds the ICC profile as a stream object, references it from the page resource dictionary's /ColorSpace entry.
Required for valid PDF/A output. OutputIntents reference a destination profile but page content must use matching ICC color space.
Tests: ICC profile stream present in output, /ColorSpace dictionary references profile object, color operators use /CSn cs syntax.