I'm using the exportToPDF() method in my toolbox. One of the parameters , {embed_color_profile}, allows color profile information to be embedded in the exported image's metadata. There's no reason to include this if color mgmt is disabled.
How can I check if the current project has Color Management enabled?