setDocumentColorProfile

abstract suspend fun setDocumentColorProfile(slot: ProfileSlot, uri: Uri)

Assigns an ICC profile to one document role and component space. Profiles save with the scene and are bundled into archives. Only Default/CMYK currently affects managed conversion; other slots store profiles without changing rendering or export. Failure or coroutine cancellation keeps the previous profile. Another assignment or removal in this slot, or scene replacement, supersedes pending loading. Other slots are independent. Undo and redo do not change profiles.

Parameters

slot

the role and component space to assign.

uri

the URI of an ICC profile matching the slot's space.

Throws

on loading, validation, a space mismatch or supersession.